/* The weight calculator page (/steel-weight-calculator/), after style.css. */
input[type="text"] {
  font: inherit;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #9aa6ae;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.row.dims { flex-wrap: wrap; }
.row.dims > * { flex: 1 1 110px; }
.weight-result {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-self: start;
}
.weight-main { margin: 0 0 8px; font-size: 1.7rem; font-weight: 700; line-height: 1.25; }
.weight-line { margin: 4px 0; }
.weight-result .hint { margin-top: 10px; }
/* A table wider than a phone scrolls inside its own box, not the page (Codex review of bfe0db3: 381 px on a 360 px screen). */
table.data { border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; display: block; max-width: 100%; overflow-x: auto; }
table.data th, table.data td { padding: 5px 14px; border-bottom: 1px solid var(--line); text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font-weight: 600; background: var(--panel); }

.part-preview { margin: 14px 0 0; }
.part-preview canvas { height: 260px; }
#dxf-fields .secondary { margin-top: 8px; padding: 7px 12px; }

.part-download { margin-top: 12px; }
.part-download .hint { margin-top: 6px; }
#weight-note.warning { color: var(--error); font-weight: 600; }
@media (max-width: 480px) { table.data th, table.data td { padding: 5px 8px; } }
