/* C04/C05 panels, compact labelled fields, C22 tables. */
#temperatureClimateApp { display:grid; gap:12px; min-width:0; }
#temperatureClimateApp [hidden] { display:none !important; }
#temperatureClimateApp .panel { padding:16px; min-width:0; }
#temperatureClimateApp h2 { margin:0; font-size:1.08rem; }
#temperatureClimateApp p { margin:0; }
#temperatureClimateApp .tc-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
#temperatureClimateApp .tc-badge { padding:4px 8px; border-radius:6px; background:var(--color-primary-soft); color:var(--color-primary); font-size:.72rem; font-weight:650; }
#temperatureClimateApp .tc-source, #temperatureClimateApp .tc-inputs, #temperatureClimateApp .tc-results, #temperatureClimateApp .tc-method-body { display:grid; align-content:start; gap:12px; }
#temperatureClimateApp .tc-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:start; }
#temperatureClimateApp .tc-project-row { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; }
#temperatureClimateApp .tc-project-row .tc-field { flex:1 1 440px; }
#temperatureClimateApp .tc-project-row a { font-size:.8rem; }
#temperatureClimateApp .tc-field { display:grid; grid-template-columns:minmax(100px,.85fr) minmax(0,1fr); align-items:center; gap:8px; margin:0; min-width:0; }
#temperatureClimateApp label { font-size:.8rem; font-weight:600; line-height:1.4; }
#temperatureClimateApp input[type="text"], #temperatureClimateApp select { width:100%; min-width:0; min-height:32px; border:1px solid var(--color-border-strong); border-radius:6px; padding:5px 8px; font:inherit; font-size:.8rem; background:var(--color-surface); color:var(--color-text); }
#temperatureClimateApp input:focus-visible, #temperatureClimateApp select:focus-visible, #temperatureClimateApp summary:focus-visible { outline:2px solid var(--color-primary); outline-offset:2px; }
#temperatureClimateApp .tc-number { display:flex; gap:8px; align-items:center; }
#temperatureClimateApp .tc-number > input { max-width:140px; }
#temperatureClimateApp .tc-number > span { font-size:.75rem; color:var(--color-text-muted); white-space:nowrap; }
#temperatureClimateApp fieldset { display:grid; gap:10px; border:0; border-top:1px solid var(--color-divider); padding:12px 0 0; margin:0; min-width:0; }
#temperatureClimateApp legend { font-size:.85rem; font-weight:700; padding:0 8px 0 0; }
#temperatureClimateApp .tc-check { display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:500; }
#temperatureClimateApp .tc-check input { width:16px; height:16px; accent-color:var(--color-primary); flex-shrink:0; }
#temperatureClimateApp #t0Fields { display:grid; gap:10px; }
#temperatureClimateApp .tc-note { font-size:.77rem; color:var(--color-text-muted); line-height:1.55; overflow-wrap:anywhere; }
#temperatureClimateApp .tc-origin { font-size:.83rem; font-weight:600; line-height:1.55; }
#temperatureClimateApp #projectOrigin { display:grid; gap:8px; }
#temperatureClimateApp .tc-error { font-size:.8rem; color:var(--color-danger, #b42318); line-height:1.5; }
#temperatureClimateApp .tc-error:empty { display:none; }
#temperatureClimateApp .tc-table-wrap { overflow:auto; max-width:100%; min-width:0; }
#temperatureClimateApp table { width:100%; font-size:.8rem; }
#temperatureClimateApp .portal-data-table th { font-size:.73rem; text-transform:none; letter-spacing:0; }
#temperatureClimateApp td { font-variant-numeric:tabular-nums; }
#temperatureClimateApp td:not(:first-child), #temperatureClimateApp th:not(:first-child) { text-align:right; }
#temperatureClimateApp #originRows td:last-child { text-align:left; }
#temperatureClimateApp .tc-result-table td:not(:first-child) { color:var(--color-primary); font-weight:750; white-space:nowrap; }
#temperatureClimateApp summary { cursor:pointer; font-size:.85rem; font-weight:650; }
#temperatureClimateApp details[open] > summary { margin-bottom:12px; }
#temperatureClimateApp .tc-method > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; font-size:1.08rem; }
#temperatureClimateApp .tc-method > summary::-webkit-details-marker { display:none; }
#temperatureClimateApp .btn { min-height:32px; padding:6px 12px; font-size:.77rem; justify-self:start; }
#temperatureClimateApp .tc-method-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#temperatureClimateApp .tc-step { padding:12px; border:1px solid var(--color-divider); border-radius:6px; min-width:0; }
#temperatureClimateApp .tc-step-formula { font-family:Cambria,"Times New Roman",serif; font-size:1.05rem; line-height:1.6; overflow-wrap:anywhere; }
#temperatureClimateApp .tc-step-value { font-size:.8rem; margin-top:6px; font-variant-numeric:tabular-nums; line-height:1.5; overflow-wrap:anywhere; }
#temperatureClimateApp .tc-step-reference { display:block; font-size:.7rem; color:var(--color-text-muted); margin-top:4px; }
#temperatureClimateApp .tc-symbols { display:grid; grid-template-columns:minmax(100px,160px) minmax(0,1fr); gap:10px 16px; margin:0; font-size:.8rem; line-height:1.5; }
#temperatureClimateApp .tc-symbols dt { font-family:Cambria,"Times New Roman",serif; font-size:1rem; }
#temperatureClimateApp .tc-symbols dd { margin:0; color:var(--color-text-muted); }
@media (max-width:1000px) {
  #temperatureClimateApp .tc-layout { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:600px) {
  #temperatureClimateApp .panel { padding:12px; }
  #temperatureClimateApp .tc-method-steps { grid-template-columns:minmax(0,1fr); }
  #temperatureClimateApp .tc-field { grid-template-columns:minmax(96px,.8fr) minmax(0,1fr); }
  #temperatureClimateApp .tc-symbols { grid-template-columns:minmax(0,1fr); gap:4px; }
  #temperatureClimateApp .tc-symbols dd { margin-bottom:8px; }
}
@media (pointer:coarse) {
  #temperatureClimateApp input[type="text"], #temperatureClimateApp select, #temperatureClimateApp .btn { min-height:44px; }
}
