/* Shared layout and typography for the three calculator information pages. */

.calculator-article .lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.calculator-stage {
    padding-top: 6px;
}

.calculator-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color-scheme: light;
    overflow: hidden;
}

/* Individual frame heights follow the visible layout of each calculator tool. */
.calculator-frame--casio {
    height: 700px;
}

.calculator-frame--ti84 {
    height: 845px;
}

.calculator-frame--ti30 {
    height: 845px;
}

.calculator-article .content-card {
    padding: 24px;
    margin: 22px 0;
}

.calculator-article .content-card p,
.calculator-article .content-card li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.calculator-article .content-card p {
    margin-top: 0;
    margin-bottom: 14px;
}

.calculator-article .content-card p:last-child {
    margin-bottom: 0;
}

.instruction-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: instruction;
}

.instruction-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--soft);
    counter-increment: instruction;
}

.instruction-list li::before {
    content: counter(instruction);
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 900px) {
    .calculator-frame--casio {
        height: 670px;
    }

    .calculator-frame--ti84,
    .calculator-frame--ti30 {
        height: 805px;
    }
}

@media (max-width: 600px) {
    .calculator-frame {
        border-radius: 12px;
    }

    .calculator-frame--casio {
        height: 640px;
    }

    .calculator-frame--ti84,
    .calculator-frame--ti30 {
        height: 765px;
    }

    .calculator-article .lead {
        font-size: 15px;
        line-height: 1.65;
    }

    .calculator-article .content-card {
        padding: 17px;
    }

    .calculator-article .content-card p,
    .calculator-article .content-card li {
        font-size: 15px;
        line-height: 1.65;
    }
}
