/* =====================================================================
   Picrezo - extra styles for the Thermal Expansion Calculator.
   The result boxes and tables reuse the rules in measure.css.
   ===================================================================== */

/* Form: fields in a flexible grid */
.tform { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 14px; margin: 1rem 0; }
.tform label { display: flex; flex-direction: column; gap: 3px; font-size: 0.85rem; color: var(--muted); }
.tform input, .tform select { font: inherit; font-size: 1rem; padding: 0.45rem 0.55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; box-sizing: border-box; min-width: 0; }
.tform input:focus, .tform select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.tform [hidden] { display: none; }
.tform .tspan { grid-column: 1 / -1; }
.trow2 { display: flex; gap: 8px; }
.trow2 input { flex: 1 1 60%; }
.trow2 select { flex: 0 0 auto; width: auto; }

/* Highlight the chosen material in the comparison table, and the size bars */
.mtab tr.msel td { background: var(--bg-soft); font-weight: 700; }
.mbarcell { width: 28%; min-width: 80px; }
.mbar1 { height: 10px; border-radius: 5px; background: var(--brand); opacity: 0.55; min-width: 1px; }

/* Chart */
.tchart canvas { display: block; max-width: 100%; }
.tchart[hidden] { display: none; }
@media (max-width: 480px) { .ttable { font-size: 0.85rem; } .ttable th, .ttable td { padding: 0.3rem 0.4rem; } }
