/* ONLY page-specific rules – global calculator.css is untouched */

/* ─── dimension box centered & button on its own line ─── */
.dims-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .dim-block {
    text-align: center;
  }
  
  .dim-header {
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .dim-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .dim-row {
    display: flex;
    gap: 10px;
  }
  
  .dim-inputs label {
    font-weight: 500;
  }
  
  .dim-inputs input {
    width: 60px;
    padding: 4px;
    font-size: 1rem;
    text-align: center;
  }
  
  .dim-inputs button {
    padding: 4px 8px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
  }
  
  /* ─── matrices layout ───────────────────────────────────── */
  .matrices-area { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
  .matrix-block  { text-align: center; margin: 0 10px; }
  .matrix-title  { margin-bottom: 8px; font-weight: 600; }
  
  /* ─── matrix brackets & cells ──────────────────────────── */
  .matrix-wrapper {
    --cell-size: 40px;
    display: inline-block;
    position: relative;
    padding: 8px;
    vertical-align: middle;
  }
  .matrix-wrapper table { border-collapse: separate; border-spacing: 1px; }
  .matrix-cell { width: var(--cell-size); height: var(--cell-size); padding: 0; border: 1px solid #999; box-sizing: border-box; }
  .cell-input  { width: 100%; height: 100%; border: none; padding: 0; margin: 0; text-align: center; font-size: 1rem; background: transparent; outline: none; box-sizing: border-box; }
  .matrix-wrapper::before,
  .matrix-wrapper::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; border-top: 2px solid #333; border-bottom: 2px solid #333; }
  .matrix-wrapper::before { left: 0; border-left: 2px solid #333; border-radius: 4px 0 0 4px; }
  .matrix-wrapper::after  { right: 0; border-right: 2px solid #333; border-radius: 0 4px 4px 0; }
  
  /* ─── answer & steps styling ───────────────────────────── */
  .answer-box { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-weight: bold; text-align: left; }
  .answer-box strong { font-weight: 700; }
  .step-button    { margin-right: 8px; }
  
  /* ─── Solve button hover ───────────────────────────────── */
  .solve-button:hover { background-color: #2980b9; }
  