/* ═══════════════════════════════════════════════════════
   LAB · Ethereum Hands-on (2×4h) — page-specific styles
   Re-uses module-style.css; adds only the bits not already
   provided (section badges, step rows, agenda, stack grid).
   ═══════════════════════════════════════════════════════ */

/* ── Section dividers ──────────────────────────────────── */
section { position: relative; }
section + section::before {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: var(--accent-gradient, linear-gradient(135deg, #f7931a, #e88c00));
    border-radius: 3px;
    margin: 0.25rem 0 3rem;
}

/* Slightly more breathing room for section content on desktop */
.module-main section h3 {
    margin: 2rem 0 0.9rem;
    font-size: 1.15rem;
}
.module-main section p { line-height: 1.75; }

/* Slightly taller, easier-to-scan code on the lab page */
.code-block pre {
    line-height: 1.6;
    font-size: 0.86rem;
}
.code-block pre code {
    /* Make highlight spans inherit nothing surprising from .module-main code rules */
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border-radius: 0;
}

/* ── Section intro badges ──────────────────────────────── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}
.section-badge--orange { background: rgba(247,147,26,0.12); color: var(--accent-primary, #f7931a); }
.section-badge--blue   { background: rgba(34,211,238,0.10); color: var(--accent-chain, #22d3ee); }
.section-badge--purple { background: rgba(139,92,246,0.12); color: var(--accent-eth,   #8b5cf6); }
.section-badge--green  { background: rgba(52,211,153,0.10); color: var(--accent-ok,    #34d399); }
.section-badge--red    { background: rgba(248,113,113,0.10); color: var(--accent-danger,#f87171); }
[data-theme="light"] .section-badge--orange { background: rgba(217,119,6,0.08); }
[data-theme="light"] .section-badge--blue   { background: rgba(8,145,178,0.08); }
[data-theme="light"] .section-badge--purple { background: rgba(124,58,237,0.08); }
[data-theme="light"] .section-badge--green  { background: rgba(5,150,105,0.08); }

/* ── Step list (numbered, large) ───────────────────────── */
.step-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.step-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.9rem;
    align-items: start;
    background: var(--bg-card, rgba(16,19,26,0.88));
    border: 1px solid var(--border-color, #1e2230);
    border-radius: 12px;
    padding: 1rem 1.1rem 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.step-row:hover {
    border-color: var(--border-hover, #2e3450);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.45));
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}
.step-num--1 { background: rgba(247,147,26,0.15); color: var(--accent-primary, #f7931a); }
.step-num--2 { background: rgba(34,211,238,0.15); color: var(--accent-chain,   #22d3ee); }
.step-num--3 { background: rgba(139,92,246,0.15); color: var(--accent-eth,     #8b5cf6); }
.step-num--4 { background: rgba(52,211,153,0.15); color: var(--accent-ok,      #34d399); }
.step-num--5 { background: rgba(248,113,113,0.15); color: var(--accent-danger, #f87171); }
.step-body h4 {
    margin: 0 0 0.35rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.step-body p, .step-body ul {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.75;
}
.step-body p + p { margin-top: 0.55rem; }
.step-body ul { margin-top: 0.6rem; padding-left: 1.2rem; }
.step-body li { margin-bottom: 0.35rem; }

/* ── Agenda (two-card grid) ────────────────────────────── */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.agenda-card {
    background: var(--bg-card, rgba(16,19,26,0.88));
    border: 1px solid var(--border-color, #1e2230);
    border-radius: 14px;
    overflow: hidden;
}
.agenda-card.agenda-s1 { border-top: 3px solid var(--accent-primary, #f7931a); }
.agenda-card.agenda-s2 { border-top: 3px solid var(--accent-eth,     #8b5cf6); }
.agenda-head {
    padding: 1rem 1.2rem 0.4rem;
    border-bottom: 1px solid var(--border-color, #1e2230);
    background: rgba(247,147,26,0.04);
}
.agenda-card.agenda-s2 .agenda-head { background: rgba(139,92,246,0.04); }
[data-theme="light"] .agenda-card.agenda-s1 .agenda-head { background: rgba(217,119,6,0.05); }
[data-theme="light"] .agenda-card.agenda-s2 .agenda-head { background: rgba(124,58,237,0.05); }
.agenda-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    background: rgba(247,147,26,0.18);
    color: var(--accent-primary, #f7931a);
}
.agenda-tag--alt { background: rgba(139,92,246,0.18); color: var(--accent-eth, #8b5cf6); }
.agenda-head h4 {
    margin: 0.4rem 0 0.9rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    color: var(--text-primary);
}
.agenda-card ol {
    margin: 0;
    padding: 1.1rem 1.5rem 1.4rem 2.4rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}
.agenda-card ol li { margin-bottom: 0.55rem; }
.agenda-card ol li:last-child { margin-bottom: 0; }

/* ── Tech stack tiles (Section 13) ─────────────────────── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stack-item {
    background: var(--bg-card, rgba(16,19,26,0.88));
    border: 1px solid var(--border-color, #1e2230);
    border-radius: 12px;
    padding: 1.1rem 1rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.stack-item:hover {
    border-color: var(--accent-primary, #f7931a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.45));
}
.stack-item .stack-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.stack-item .stack-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}
.stack-item .stack-desc {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 0.3rem;
    line-height: 1.5;
}

/* ── Generic numbered list (deploy steps etc.) ─────────── */
.numbered-list {
    counter-reset: lab-step;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
}
.numbered-list > li {
    counter-increment: lab-step;
    position: relative;
    padding: 0.95rem 0 0.95rem 2.6rem;
    color: var(--text-secondary);
    line-height: 1.75;
    border-bottom: 1px dashed var(--border-color, #1e2230);
}
.numbered-list > li:last-child { border-bottom: none; }
.numbered-list > li::before {
    content: counter(lab-step);
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(247,147,26,0.12);
    color: var(--accent-primary, #f7931a);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.numbered-list ul {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.93rem;
}
.numbered-list ul li { margin-bottom: 0.3rem; }

/* ── Prereq / hint list (bullet, padded) ───────────────── */
.lab-prereq-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
}
.lab-prereq-list > li {
    position: relative;
    padding: 0.8rem 0 0.8rem 1.7rem;
    color: var(--text-secondary);
    line-height: 1.75;
    border-bottom: 1px dashed var(--border-color, #1e2230);
}
.lab-prereq-list > li:last-child { border-bottom: none; }
.lab-prereq-list > li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: var(--accent-primary, #f7931a);
    font-weight: 700;
}

/* ── Compact code blocks fit better on the lab page ────── */
.code-block pre { font-size: 0.82rem; }
@media (max-width: 700px) {
    .step-row { grid-template-columns: 36px 1fr; }
    .agenda-card ol { padding-left: 2rem; }
}
