@charset "utf-8";

/* ============================================================
   1771693113 - 더하기 피라미드 (Addition Pyramid)
   고유 접두사: p1771693113-
   ============================================================ */

/* ── 전체 컨테이너: 3×3 격자 ── */
.p1771693113-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 40px;
    padding: 10px 0 0 0;
    justify-items: center;
}

/* ── 개별 피라미드 아이템 ── */
.p1771693113-item {
    width: 200px;
    display: flex;
    justify-content: center;
}

/* ── 삼각형 배경 ── */
.p1771693113-triangle {
    position: relative;
    width: 210px;
    padding: 20px 16px 14px;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── 행 공통 ── */
.p1771693113-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.p1771693113-row1 {
    margin-top: 18px;
}

.p1771693113-row2 {
    margin-top: 0;
}

.p1771693113-row3 {
    margin-top: 0;
}

/* ── 셀 (숫자 칸) ── */
.p1771693113-cell {
    width: 34px;
    height: 28px;
    background: #fff;
    border: 1.5px solid #1e3a5f;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ── 정답 표시 (빨간 글씨) ── */
.p1771693113-answer {
    color: #dc2626;
    background: #fef2f2;
    border-color: #dc2626;
}

/* ── + 기호 ── */
.p1771693113-plus {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    width: 14px;
    text-align: center;
    z-index: 2;
}

/* ── 화살표 행 ── */
.p1771693113-arrows {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    z-index: 2;
    line-height: 1;
    margin: 1px 0;
}

.p1771693113-arrows2 {
    gap: 15px;
}

/* ── 인쇄 ── */
@media print {

    .p1771693113-triangle,
    .p1771693113-cell,
    .p1771693113-answer,
    .p1771693113-plus {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .p1771693113-grid {
        gap: 14px 10px;
    }
}

/* ============================================================
   1771694983 - 분수의 다양한 표현
   고유 접두사: p1771694983-
   ============================================================ */

.p1771694983-wrap {
    width: 100%;
}

.p1771694983-hdr {
    display: grid;
    grid-template-columns: 90px 70px 70px 1fr;
    gap: 8px;
    padding: 6px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px 6px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-align: center;
}

.p1771694983-row {
    display: grid;
    grid-template-columns: 90px 70px 70px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-top: none;
    min-height: 90px;
}

.p1771694983-row:nth-child(even) {
    background: #f8fafc;
}

.p1771694983-cpie {
    display: flex;
    justify-content: center;
}

.p1771694983-cfr {
    display: flex;
    justify-content: center;
}

.p1771694983-cnl {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 분수 표시 */
.p1771694983-frac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.p1771694983-fn,
.p1771694983-fd {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    min-width: 26px;
    min-height: 24px;
    padding: 1px 4px;
}

.p1771694983-fb {
    width: 100%;
    height: 2px;
    background: #333;
}

.p1771694983-blank {
    border: 1.5px solid #94a3b8;
    border-radius: 3px;
    background: #fff;
    margin: 2px;
}

.p1771694983-ans {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* 수직선 */
.p1771694983-nline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
}

.p1771694983-nl-lbl {
    font-size: 11px;
    color: #555;
    min-width: 10px;
    text-align: center;
    line-height: 1;
    padding-bottom: 2px;
}

.p1771694983-nl-track {
    flex: 1;
    position: relative;
    height: 24px;
}

.p1771694983-nl-track::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #333;
}

.p1771694983-nl-tick {
    position: absolute;
    bottom: 2px;
    width: 1.5px;
    height: 10px;
    background: #333;
    transform: translateX(-50%);
    z-index: 1;
}

.p1771694983-nl-big {
    height: 14px;
    bottom: 0;
    width: 2px;
}

.p1771694983-nl-dot {
    position: absolute;
    bottom: 12px;
    width: 8px;
    height: 8px;
    background: #1e6091;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

@media print {

    .p1771694983-row,
    .p1771694983-hdr,
    .p1771694983-nl-dot,
    .p1771694983-blank,
    .p1771694983-ans {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}