/* GanjaSeedIndex.com — Financial index aesthetic. Data-driven. Sophisticated. */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Core palette — dark, sophisticated */
    --ink: #0c0c0e;
    --ink-800: #18181b;
    --ink-700: #27272a;
    --ink-600: #3f3f46;
    --ink-500: #52525b;
    --ink-400: #71717a;
    --ink-300: #a1a1aa;
    --ink-200: #d4d4d8;
    --ink-100: #e4e4e7;
    --ink-50: #f4f4f5;

    /* Surface */
    --surface: #fafaf9;
    --surface-card: #ffffff;
    --surface-raised: #ffffff;
    --surface-dark: #18181b;
    --surface-darker: #0c0c0e;

    /* Accent — muted green (financial "up") */
    --up: #16a34a;
    --up-light: #22c55e;
    --up-bg: #f0fdf4;
    --up-muted: #166534;
    --up-dim: rgba(22,163,74,0.08);

    /* Down */
    --down: #dc2626;
    --down-bg: #fef2f2;

    /* Gold accent — premium/financial */
    --gold: #b8860b;
    --gold-light: #d4a017;
    --gold-bg: #fffbeb;
    --gold-muted: rgba(184,134,11,0.1);

    /* Data colors */
    --indica: #3b82f6;
    --sativa: #eab308;
    --hybrid: #8b5cf6;

    --white: #ffffff;
    --black: #000000;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;

    --max-width: 1280px;
    --transition: 0.15s ease;

    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-serif: 'DM Serif Display', 'Georgia', serif;

    /* Bloomberg accent — purple */
    --accent: #6d5ce7;
    --accent-light: #8677ed;
    --accent-dim: rgba(109,92,231,0.12);
    --accent-glow: rgba(109,92,231,0.35);
}

/* ---- Reset ---- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    color: var(--ink-700);
    background: var(--surface);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container { flex: 1; }

a { color: var(--ink-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ================================================================
   HEADER — Dark, institutional, ticker-style
   ================================================================ */

.site-header {
    background: var(--surface-darker);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
}

/* Gradient accent line below header instead of solid border */
.site-header::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--gold-light) 40%, var(--up-light) 70%, var(--accent) 100%);
}

/* Ticker tape bar — Bloomberg-style data crawl */
.ticker-tape {
    background: var(--ink-800);
    border-bottom: 1px solid var(--ink-700);
    overflow: hidden;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.35rem 0;
}

.ticker-tape-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}

.ticker-tape-inner span {
    flex-shrink: 0;
}

.ticker-tape-inner .ticker-value {
    color: var(--gold-light);
    font-weight: 600;
}

.ticker-tape-inner .ticker-sep {
    color: var(--ink-600);
    margin: 0 1.25rem;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 2.5rem;
}

.site-logo {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo span { color: var(--gold-light); }

.site-logo .logo-dot {
    width: 6px;
    height: 6px;
    background: var(--up-light);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
    flex: 1;
}

.nav-links li {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-dropdown-trigger {
    color: var(--ink-300);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links a:hover,
.nav-dropdown-trigger:hover {
    color: var(--white);
    text-decoration: none;
    border-bottom-color: var(--accent-light);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    line-height: 1;
}

.nav-dropdown-trigger span {
    font-size: 0.65rem;
    transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger span {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--surface-darker);
    border: 1px solid var(--ink-600);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem 0;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.15rem;
    color: var(--ink-300);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: none;
    transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
    color: var(--white);
    background: var(--ink-700);
    border-bottom: none;
}

.nav-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-search input {
    padding: 0.4rem 0.85rem;
    padding-left: 2rem;
    border: 1px solid var(--ink-600);
    border-radius: var(--radius-sm);
    background: var(--ink-800);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    width: 220px;
    outline: none;
    transition: all var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.6rem center;
}

.nav-search input::placeholder { color: var(--ink-500); font-family: var(--font-mono); }
.nav-search input:focus {
    border-color: var(--accent-light);
    background: var(--ink-700);
    width: 280px;
}

.nav-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--surface-card);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    margin-top: 0.4rem;
}

.nav-search-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    color: var(--ink-700);
    text-decoration: none;
    border-bottom: 1px solid var(--ink-50);
    font-size: 0.85rem;
}

.nav-search-dropdown a:hover { background: var(--ink-50); }
.nav-search-dropdown a strong { color: var(--ink); }
.nav-search-dropdown .ns-price { font-family: var(--font-mono); color: var(--up); font-weight: 600; font-size: 0.82rem; }
.nav-search-dropdown .ns-empty { padding: 1rem; text-align: center; color: var(--ink-400); font-family: var(--font-mono); font-size: 0.8rem; }

/* ================================================================
   BREADCRUMBS
   ================================================================ */

.breadcrumbs {
    padding: 1rem 0 0.5rem;
    font-size: 0.75rem;
    color: var(--ink-400);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumbs a { color: var(--ink-400); }
.breadcrumbs a:hover { color: var(--up); }
.breadcrumbs span { margin: 0 0.3rem; color: var(--ink-300); }

/* ================================================================
   PAGE HEADINGS
   ================================================================ */

.page-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.35rem;
    letter-spacing: -2px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--ink-400);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-weight: 400;
}

/* ================================================================
   HOMEPAGE HERO — Dark section bridging header, full-bleed
   ================================================================ */

.homepage-hero {
    background: linear-gradient(180deg, var(--surface-darker) 0%, #1a1a2e 60%, var(--ink-800) 100%);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    border-bottom: 2px solid var(--gold-light);
}

/* Data-terminal grid overlay */
.homepage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(109,92,231,0.04) 39px, rgba(109,92,231,0.04) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(109,92,231,0.04) 39px, rgba(109,92,231,0.04) 40px),
        radial-gradient(ellipse at 50% 30%, rgba(109,92,231,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-inner h1 {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.6rem;
    letter-spacing: -2px;
    line-height: 1.15;
}

.hero-accent {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--up-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--ink-400);
    font-family: var(--font-mono);
    margin-bottom: 2rem;
}

/* Hero search input */
.hero-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-search-icon {
    position: absolute;
    left: 1.1rem;
    opacity: 0.5;
    pointer-events: none;
    flex-shrink: 0;
}

.hero-search-input {
    width: 100%;
    padding: 0.9rem 1.25rem 0.9rem 2.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(22,163,74,0.3);
    border-radius: 60px;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.hero-search-input::placeholder { color: var(--ink-500); }

.hero-search-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--up-light);
    box-shadow: 0 8px 30px rgba(22,163,74,0.15);
}

/* Dropdown results */
.hero-results {
    display: none;
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: -1.5rem auto 1.5rem;
    background: var(--surface-card);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 50;
}

.hero-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: var(--ink-700);
    border-bottom: 1px solid var(--ink-50);
    transition: background var(--transition);
}

.hero-result-item:hover {
    background: var(--ink-50);
}

.hero-result-info {
    flex: 1;
    min-width: 0;
}

.hero-result-info strong {
    font-size: 0.88rem;
    color: var(--ink);
}

.hero-result-breeder {
    font-size: 0.72rem;
    color: var(--ink-400);
    margin-left: 0.4rem;
}

.hero-result-price {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--up);
    font-size: 0.88rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.hero-result-empty {
    padding: 1rem;
    text-align: center;
    color: var(--ink-400);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* Stats row — flex guarantees horizontal layout */
.hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    max-width: 480px;
    margin: 0.5rem auto 0;
}

.hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.hero-stat-number {
    font-family: var(--font-mono);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ink-500);
    margin-top: 0.35rem;
}

/* ================================================================
   HOMEPAGE SECTIONS — Shared label + spacing
   ================================================================ */

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-400);
    margin-bottom: 1.25rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent);
}

.homepage-categories {
    margin-top: 2.5rem;
}

.homepage-popular {
    margin-top: 2.5rem;
}

/* ================================================================
   CATEGORY GRID — Substantial cards with colored accents
   ================================================================ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface-card);
    border: 1px solid var(--ink-100);
    border-left: 4px solid var(--ink-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.category-card:hover {
    border-left-color: var(--up);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: inherit;
}

/* Colored left borders per type */
.category-card--feminized { border-left-color: var(--up); }
.category-card--autoflower { border-left-color: #0d9488; }
.category-card--regular { border-left-color: var(--ink-400); }
.category-card--indica { border-left-color: var(--indica); }
.category-card--sativa { border-left-color: var(--sativa); }
.category-card--supplies { border-left-color: var(--gold); }

.category-card--feminized:hover { border-left-color: var(--up-light); }
.category-card--autoflower:hover { border-left-color: #14b8a6; }
.category-card--indica:hover { border-left-color: #60a5fa; }
.category-card--sativa:hover { border-left-color: #facc15; }
.category-card--supplies:hover { border-left-color: var(--gold-light); }

.category-icon {
    font-size: 1.6rem;
    opacity: 0.75;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.category-text {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}

.category-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-400);
    margin-top: 0.15rem;
}

/* ================================================================
   BOTTOM LINK CARDS — Deals & Guides
   ================================================================ */

.homepage-bottom-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.bottom-link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--surface-card);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.bottom-link-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.bottom-link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--ink-50);
}

.bottom-link-card--deals .bottom-link-icon {
    color: var(--up);
    background: var(--up-dim);
}

.bottom-link-card--guides .bottom-link-icon {
    color: var(--gold);
    background: var(--gold-muted);
}

.bottom-link-text h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.bottom-link-text p {
    font-size: 0.82rem;
    color: var(--ink-400);
    font-family: var(--font-mono);
}

/* ================================================================
   MOBILE NAV — Hidden by default, shown only with .open on mobile
   ================================================================ */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.mobile-nav {
    display: none !important;
    background: var(--surface-darker);
    border-bottom: 1px solid var(--ink-700);
    padding: 0.5rem 1.5rem 1rem;
}

.mobile-nav a {
    display: block;
    padding: 0.65rem 0;
    color: var(--ink-300);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--ink-800);
    transition: color var(--transition);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); }

.mobile-nav-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ink-500);
    padding: 0.85rem 0 0.25rem;
    border-bottom: none;
}

/* ================================================================
   STRAIN DETAIL — The data sheet
   ================================================================ */

.strain-header {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--ink-100);
    margin-bottom: 1.5rem;
}

.strain-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--ink-50);
}

.strain-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.strain-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 8px rgba(255,255,255,0.05);
}

.badge-indica { background: rgba(59,130,246,0.12); color: #2563eb; border: 1px solid rgba(59,130,246,0.25); }
.badge-indica::before { content: '\25CF'; font-size: 0.5rem; }
.badge-sativa { background: rgba(234,179,8,0.12); color: #b45309; border: 1px solid rgba(234,179,8,0.25); }
.badge-sativa::before { content: '\2600'; font-size: 0.6rem; }
.badge-hybrid { background: rgba(139,92,246,0.12); color: #7c3aed; border: 1px solid rgba(139,92,246,0.25); }
.badge-hybrid::before { content: '\2726'; font-size: 0.55rem; }
.badge-feminized { background: rgba(22,163,74,0.1); color: #15803d; border: 1px solid rgba(22,163,74,0.2); }
.badge-feminized::before { content: '\2640'; font-size: 0.7rem; }
.badge-regular { background: var(--ink-50); color: var(--ink-500); border: 1px solid var(--ink-200); }
.badge-regular::before { content: '\25CB'; font-size: 0.5rem; }
.badge-autoflower { background: rgba(20,184,166,0.1); color: #0d9488; border: 1px solid rgba(20,184,166,0.2); }
.badge-autoflower::before { content: '\26A1'; font-size: 0.55rem; }

/* Stat boxes — financial data feel */
.strain-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.stat-box {
    background: var(--ink-50);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ink-100);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--ink-400);
    margin-bottom: 0.15rem;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

/* ================================================================
   SECTIONS / PANELS
   ================================================================ */

.comparison-section {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ink-100);
}

.comparison-section h2 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent);
}

/* ================================================================
   PRICE COMPARISON TABLE — The heart of the index
   ================================================================ */

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ink-400);
    border-bottom: 2px solid var(--ink-200);
    font-weight: 600;
    white-space: nowrap;
    background: var(--ink-50);
}

.comparison-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--ink-50);
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Alternating row backgrounds */
.comparison-table tbody tr:nth-child(even) td {
    background: rgba(0,0,0,0.015);
}

.comparison-table tbody tr {
    transition: background var(--transition);
}

.comparison-table tbody tr:hover {
    background: var(--accent-dim);
}

/* Cheapest row highlight — accent left border */
.comparison-table tbody tr:first-child td {
    background: var(--up-dim);
}

.comparison-table tbody tr:first-child td:first-child {
    border-left: 3px solid var(--up);
}

.shop-name {
    font-weight: 600;
    color: var(--ink-700);
    font-size: 0.9rem;
}

.price-current {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--up);
}

.price-original {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink-300);
    text-decoration: line-through;
    margin-left: 0.35rem;
}

.price-per-seed {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-400);
}

.cheapest-badge {
    display: inline-block;
    background: var(--up);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    margin-left: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-yes { color: var(--up); font-weight: 500; font-size: 0.8rem; }
.stock-no { color: var(--ink-300); font-size: 0.8rem; }

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.15rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.btn-buy:hover {
    background: #5a49d4;
    text-decoration: none;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ================================================================
   STRAIN CARDS — Lively data panels with depth and hover life
   ================================================================ */

.strain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.strain-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--ink-100);
    position: relative;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.strain-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06), 0 0 20px var(--accent-glow);
    transform: translateY(-4px);
    color: inherit;
}

/* Effect indicator bar — thicker for visibility */
.strain-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--up) 0%, var(--up-light) 100%);
    transition: box-shadow 0.3s ease;
}

.strain-card:hover::before {
    box-shadow: 0 0 8px var(--accent-glow);
}

.strain-card[data-effect="indica"]::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.strain-card[data-effect="sativa"]::before {
    background: linear-gradient(90deg, #ca8a04, #facc15);
}
.strain-card[data-effect="hybrid"]::before {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

/* Image wrapper for overflow hidden zoom */
.strain-card-img-wrap {
    overflow: hidden;
    position: relative;
}

/* Dark-to-transparent gradient overlay on card images */
.strain-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(12,12,14,0.35) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.strain-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--ink-50);
    transition: transform 0.4s ease;
}

.strain-card:hover .strain-card-image {
    transform: scale(1.05);
}

.strain-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-700) 100%);
    color: var(--ink-400);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.strain-card-body {
    padding: 1rem 1.15rem 1.25rem;
}

.strain-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.15rem;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.strain-card-breeder {
    font-size: 0.72rem;
    color: var(--ink-400);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.strain-card-price {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--up);
    margin-top: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.strain-card-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--ink-400);
}

.strain-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--ink-50);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-400);
}

/* ================================================================
   DESCRIPTION
   ================================================================ */

.description-section {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    border: 1px solid var(--ink-100);
}

.description-section h2 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description-section p {
    margin-bottom: 1rem;
    color: var(--ink-600);
    font-size: 0.92rem;
}

/* ================================================================
   FOOTER — Institutional, dense with links
   ================================================================ */

.site-footer {
    background: var(--surface-darker);
    color: var(--ink-400);
    padding: 2rem 0 0;
    margin-top: auto;
    font-size: 0.82rem;
    border-top: 2px solid var(--ink-700);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0;
}

.footer-col {
    padding: 0 1.5rem;
    border-right: 1px solid var(--ink-800);
}

.footer-col:first-child { padding-left: 0; }
.footer-col:last-child  { border-right: none; padding-right: 0; }

.footer-col h4 {
    color: var(--ink-300);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.65rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--ink-800);
}

.footer-col a {
    color: var(--ink-500);
    display: block;
    padding: 0.15rem 0;
    font-size: 0.78rem;
}

.footer-col a:hover { color: var(--accent-light); text-decoration: none; }

.footer-col p {
    line-height: 1.5;
    font-size: 0.76rem;
    color: var(--ink-500);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--ink-800);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--ink-600);
    letter-spacing: 0.3px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-search input { width: 180px; }
    /* Show mobile nav ONLY when .open AND on mobile */
    .mobile-nav.open { display: block !important; }
}

@media (max-width: 768px) {
    .strain-header { grid-template-columns: 1fr; padding: 1.25rem; }
    .strain-header img { max-height: 220px; width: 100%; }
    .nav-search input { width: 140px; }
    .comparison-table { font-size: 0.82rem; }
    .comparison-table th:nth-child(4),
    .comparison-table td:nth-child(4) { display: none; }
    .page-title { font-size: 1.4rem; }
    .strain-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
    .hero-inner h1 { font-size: 1.75rem; letter-spacing: -0.75px; }
    .hero-inner { padding: 2.5rem 1rem 2rem; }
    .hero-search-input { font-size: 0.85rem; }
    .hero-stats { gap: 1rem; max-width: 360px; flex-direction: row; }
    .hero-stat-number { font-size: 2rem; }
    .comparison-section { padding: 1.15rem; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .footer-col:nth-child(2n) { border-right: none; }
    .footer-col { padding: 0 1rem; margin-bottom: 1rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .homepage-bottom-links { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
    .strain-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 0; }
    .footer-col { border-right: none; padding: 0; margin-bottom: 0.75rem; }
    .strain-stats { grid-template-columns: repeat(2, 1fr); }
    .comparison-table th:nth-child(5),
    .comparison-table td:nth-child(5) { display: none; }
    .category-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 0.75rem; max-width: 300px; flex-direction: row; }
    .hero-stat-number { font-size: 1.6rem; }
    .hero-search-wrap { max-width: 100%; }
}

/* ================================================================
   UTILITY
   ================================================================ */

/* ================================================================
   LINEAGE TREE — Visual family tree with connecting lines
   ================================================================ */

.lineage-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 0.5rem;
    overflow-x: auto;
}

/* Parent row */
.lineage-parents {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
}

/* Horizontal bridge between parents */
.lineage-parents::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: calc(50% - 60px);
    width: 120px;
    height: 1px;
    background: var(--ink-300);
}

/* Each parent gets a vertical line down to the bridge */
.lineage-parent {
    background: var(--ink-50);
    color: var(--ink-600);
    border: 1px solid var(--ink-200);
    position: relative;
    margin: 0 1.5rem;
}

.lineage-parent::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 1px;
    height: 20px;
    background: var(--ink-300);
}

/* Connector: the "x" symbol between the bridge and current node */
.lineage-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    position: relative;
}

/* Vertical line from bridge down through "x" to current node */
.lineage-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--ink-300);
}

.lineage-line-left, .lineage-line-right { display: none; }

.lineage-cross {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-400);
    background: var(--surface-card);
    padding: 0 0.4rem;
    position: relative;
    z-index: 1;
}

/* Node base styles */
.lineage-node {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-sm);
    text-align: center;
    white-space: nowrap;
}

.lineage-node a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.lineage-node a:hover {
    color: var(--up);
    border-bottom-color: var(--up);
}

/* Current strain — gold highlight */
.lineage-current {
    background: var(--ink);
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.65rem 1.75rem;
    border: 2px solid var(--gold-light);
    box-shadow: 0 0 0 4px var(--gold-muted);
    position: relative;
    z-index: 1;
}

.lineage-current a, .lineage-current span { color: var(--white); }

/* Children */
.lineage-child {
    background: var(--surface);
    color: var(--ink-600);
    border: 1px solid var(--ink-200);
    font-size: 0.75rem;
    position: relative;
}

/* Vertical dot from current down to children */
.lineage-connector-down {
    width: 1px;
    height: 28px;
    background: var(--ink-300);
}

.lineage-children {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    padding-top: 12px;
}

/* Horizontal bridge above children */
.lineage-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 80px);
    width: 160px;
    height: 1px;
    background: var(--ink-300);
}

/* Each child gets a vertical line up to the bridge */
.lineage-child::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    width: 1px;
    height: 12px;
    background: var(--ink-300);
}

/* Landrace / freeform origin */
.lineage-origin {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-400);
    font-style: italic;
    text-align: center;
    max-width: 400px;
    padding: 0.5rem 1rem;
    background: var(--ink-50);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--ink-200);
}

.lineage-connector-single {
    width: 1px;
    height: 28px;
    background: var(--ink-300);
}

@media (max-width: 480px) {
    .lineage-parents { flex-direction: column; align-items: center; gap: 0.5rem; }
    .lineage-parents::after { display: none; }
    .lineage-parent { margin: 0; }
    .lineage-parent::after { display: none; }
    .lineage-node { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
    .lineage-current { font-size: 0.78rem; padding: 0.5rem 1rem; }
}

/* ================================================================
   UTILITY
   ================================================================ */

/* ================================================================
   GUIDE CONTENT — Article styling for markdown-rendered guides
   ================================================================ */

.guide-content { margin-top: 1.5rem; }
.guide-content h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--ink); }
.guide-content h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--ink-700); }
.guide-content p { margin-bottom: 1rem; color: var(--ink-600); font-size: 0.95rem; line-height: 1.8; }
.guide-content ul, .guide-content ol { margin: 0 0 1rem 1.5rem; color: var(--ink-600); font-size: 0.95rem; line-height: 1.8; }
.guide-content li { margin-bottom: 0.35rem; }
.guide-content strong { color: var(--ink-700); }
.guide-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.guide-content th { text-align: left; padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-400); border-bottom: 2px solid var(--ink-100); }
.guide-content td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--ink-50); color: var(--ink-600); }
.guide-content code { font-family: var(--font-mono); font-size: 0.85rem; background: var(--ink-50); padding: 0.15rem 0.4rem; border-radius: 3px; }

/* ================================================================
   UTILITY
   ================================================================ */

/* ================================================================
   SHOP PAGES
   ================================================================ */

.shop-header {
    background: var(--surface-card);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.shop-tagline {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--ink-400);
    margin: 0.25rem 0 1rem;
}

.shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Shop index list */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.shop-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    background: var(--surface-card);
    border: 1px solid var(--ink-100);
    border-left: 4px solid var(--up);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.shop-list-card:hover {
    border-color: var(--ink-300);
    border-left-color: var(--gold-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: inherit;
}

.shop-list-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
}

.shop-list-tagline {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink-400);
    margin-bottom: 0.5rem;
}

.shop-list-detail {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-400);
    margin-right: 1rem;
}

.shop-list-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.shop-list-stat {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--up);
    white-space: nowrap;
}

.shop-list-stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.shop-list-stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-400);
    margin-top: 0.15rem;
}

/* ================================================================
   UTILITY
   ================================================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.font-mono { font-family: var(--font-mono); }
