/* ═══════════════════════════════════════════════════════
   SOLIDITY QUICK REFERENCE — page-specific styles
   Reuses module-style.css; adds only the section badges
   that the reference page uses for its visual rhythm.
   ═══════════════════════════════════════════════════════ */

/* ── Section dividers (matches lab pages) ──────────────── */
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;
}

/* ── 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); }

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

/* ── Comfortable code blocks for cheatsheet scanning ───── */
.code-block pre {
    line-height: 1.6;
    font-size: 0.86rem;
}
