/* ------------------------------------------------------------------ *
 * go_algebra.css
 * Presentation for the "Basic Algebra in Go" page: the problem banner,
 * the by-hand worked steps, and the two-column "standard vs Go" idea.
 * Layered on top of basic-go.css + go_learn.css.
 * ------------------------------------------------------------------ */

/* The equation being solved, shown big and centered */
.algebra-problem {
    margin: 0.6rem 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #a5f3fc;
    border-radius: 10px;
    background: #ecfeff;
    text-align: center;
    font: 700 1.35rem/1.3 'Courier New', Courier, monospace;
    color: #0e5063;
    letter-spacing: 0.02em;
}

/* Sub-headers inside a problem: "Solve it by hand" / "Solve it in Go" */
.algebra-h {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.4rem 0 0.5rem;
    font-size: 1.05rem;
    color: #0e7490;
}
.algebra-h .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #0e7490;
    color: #fff;
    font: 700 0.72rem/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.algebra-h .badge.go { background: #00758d; }

/* By-hand worked steps */
.algebra-work {
    margin: 0.4rem 0 0.5rem;
    padding: 0.9rem 1.1rem 1rem;
    border-left: 4px solid #0891b2;
    border-radius: 8px;
    background: #f8fafc;
}
.algebra-work ol {
    margin: 0;
    padding-left: 1.35rem;
    counter-reset: step;
}
.algebra-work ol > li {
    margin: 0.45rem 0;
    line-height: 1.55;
}
.algebra-work .eq {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 0.1em 0.45em;
    border-radius: 5px;
    font-weight: 700;
}
.algebra-work .op {
    color: #6d28d9;
    font-style: italic;
    font-size: 0.92em;
}
.algebra-answer {
    margin-top: 0.7rem;
    font-weight: 700;
    color: #047857;
}
.algebra-answer .eq {
    font-family: 'Courier New', Courier, monospace;
    background: #dcfce7;
    color: #065f46;
    padding: 0.1em 0.5em;
    border-radius: 5px;
}
