.ohms-law-diagram {
    --ohms-law-green: #17684f;
    --ohms-law-ink: #202b30;
    --ohms-law-line: #e1e9e3;
    max-width: 26rem;
    margin: 1.5rem auto 2rem;
    padding: 1.25rem;
    border: 1px solid var(--ohms-law-line);
    border-radius: 8px;
    background: #fbfdfb;
}

.ohms-law-diagram figcaption {
    color: #173c2e;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
}

.ohms-law-diagram svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0.75rem auto 0;
}

.ohms-law-diagram__wire {
    fill: none;
    stroke: var(--ohms-law-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.ohms-law-diagram__resistor {
    fill: #e8f3eb;
    stroke: var(--ohms-law-green);
    stroke-width: 2.5;
}

.ohms-law-diagram__label {
    fill: #294b39;
    font: 600 13px system-ui, sans-serif;
}

.ohms-law-diagram__arrow {
    fill: #a76b2c;
    stroke: #a76b2c;
}

/* Formula comparison grid */
.ohms-formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.ohms-formula-card {
    background: #f7f9f7;
    border: 1px solid #dce5df;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.ohms-formula-card h4 {
    margin: 0 0 0.5rem;
    color: #17684f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ohms-formula-card pre {
    margin: 0;
    background: transparent;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #24352f;
}

/* Wattage comparison boxes */
.ohms-power-box {
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.ohms-power-box--safe {
    background: #edf6f0;
    border-left: 4px solid #17684f;
}

.ohms-power-box--danger {
    background: #fdf3f2;
    border-left: 4px solid #d32f2f;
}

.ohms-power-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.ohms-power-box--safe h3 {
    color: #124e3c;
}

.ohms-power-box--danger h3 {
    color: #b71c1c;
}

.ohms-power-box p {
    margin: 0 0 0.5rem;
}

.ohms-power-box p:last-child {
    margin-bottom: 0;
}

