/* ===============================
   TRIANGLE PANEL LAYOUT
=============================== */

.triangle-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
}

/* ===============================
   RIGHT STACK (GRAPHIC + RESULT)
=============================== */

.input-right-stack {
  background: #ffffff;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===============================
   SHAPE GRAPHIC
=============================== */

.shape-graphic {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shape-graphic svg {
  display: block;
}

/* ===============================
   RESULT GRID (CSS-ONLY UPGRADE)
=============================== */

.result-box {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

/* Result heading */
.result-box h3 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

/* Main value (Area) */
.result-big {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Secondary value (Perimeter) */
.secondary-result {
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #475569;
}

/* Perimeter number */
.secondary-result strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 900px) {
  .triangle-panel {
    grid-template-columns: 1fr;
  }
}
