/* Minimal, theme-neutral. */
.ohc { max-width: 60rem; }
.ohc h2 { margin-top: 0; }
.ohc label { display: block; margin-top: 0.8rem; font-weight: 600; }
.ohc input[type="text"] { width: 100%; max-width: 30rem; }
.ohc button { margin-top: 1rem; margin-right: 0.6rem; }
.ohc-status { margin-top: 0.8rem; font-style: italic; }
.ohc-error { color: #96331f; font-weight: 600; }
.ohc-notes { font-family: ui-monospace, monospace; font-size: 0.85em; margin: 0.8rem 0; }
.ohc-open { margin: 1rem 0; }
.ohc-item { padding: 0.5rem 0; border-bottom: 1px solid #ddd; }
.ohc-cands, .ohc-readings, .ohc-how { font-size: 0.85em; color: #4e565a; }
.ohc-json { width: 100%; font-family: ui-monospace, monospace; font-size: 0.8em; }
.ohc-pending li { font-family: ui-monospace, monospace; font-size: 0.85em; }
.ohc-table { border-collapse: collapse; width: 100%; }
.ohc-table th, .ohc-table td { text-align: right; padding: 0.3rem 0.6rem; border-bottom: 1px solid #ddd; white-space: nowrap; }
.ohc-table td:first-child, .ohc-table td:nth-child(2) { white-space: normal; }
.ohc-table th:first-child, .ohc-table td:first-child { text-align: left; }
.ohc-q { margin-bottom: 0.3rem; }
.ohc-control { margin: 0.4rem 0 0.2rem 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; max-width: 40rem; }
/* a label and its control side by side, wrapping onto two lines when the
   COLUMN is narrow -- a theme's content column can be narrow on a wide
   screen, where a media query on the viewport never fires (Q88) */
.ohc .ohc-field { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: center; font-weight: normal; margin: 0; }
.ohc .ohc-field > span { flex: 1 1 14rem; }
.ohc .ohc-field > select, .ohc .ohc-field > input { flex: 1 1 12rem; min-width: 0; max-width: 100%; }
.ohc .ohc-field > .ohc-num { flex: 0 0 8rem; }
.ohc-field span { font-size: 0.9em; color: #4e565a; }
.ohc .ohc-check { font-weight: normal; margin: 0; display: block; }
.ohc .ohc-done { margin-top: 0.3rem; font-weight: 600; }
.ohc-item .ohc-advanced { margin-top: 0.4rem; font-size: 0.9em; }
.ohc-item .ohc-advanced .ohc-field { margin-top: 0.3rem; }
.ohc .ohc-num { width: 8rem; }      /* over the 100 % of .ohc input[type=text] */
.ohc-basis { width: 100%; }
.ohc-advanced { margin-top: 1.5rem; }
.ohc-advanced summary { cursor: pointer; }
.ohc-sides-row { display: grid; grid-template-columns: minmax(8rem, 1fr) repeat(3, minmax(3.5rem, 6.5rem)); gap: 0.5rem; align-items: center; }
.ohc .ohc-sides-row .ohc-num { width: 100%; }
.ohc-sides-head span { font-size: 0.85em; color: #4e565a; }
.ohc-row { display: grid; grid-template-columns: max-content 8rem max-content 1fr; gap: 0.6rem 0.75rem; align-items: center; margin-top: 0.8rem; max-width: 30rem; }
.ohc-row label { margin-top: 0; }
.ohc .ohc-row input[type="text"] { width: 100%; max-width: none; }
.ohc-settle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 70rem) { .ohc-settle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ohc-viewer { position: sticky; top: 0.5rem; max-height: 95vh; overflow: auto; border: 1px solid #ddd; padding: 0.5rem; background: #fff; }
.ohc-viewer[hidden] { display: none; }
.ohc-page { display: block; max-width: 100%; height: auto; cursor: zoom-in; }
.ohc-page.ohc-page-zoom { max-width: none; cursor: zoom-out; }
.ohc-stage.ohc-stage-zoom { max-width: none; }
.ohc-page-strip { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ohc .ohc-page-btn { margin: 0.2rem 0 0; font-size: 0.85em; padding: 0.15rem 0.5rem; }
.ohc .ohc-page-btn.ohc-page-on { font-weight: 700; }
.ohc-houses { margin-bottom: 1.5rem; }
.ohc-house { padding: 0.3rem 0; border-bottom: 1px solid #ddd; }
.ohc-back { display: inline-block; margin-bottom: 0.5rem; font-size: 0.9em; }
.ohc-summary { max-width: 46rem; margin: 0.3rem 0; }
.ohc-stage { position: relative; display: inline-block; max-width: 100%; }
.ohc-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.ohc-outline { fill: rgba(31, 111, 107, 0.18); stroke: #1f6f6b; stroke-width: 3; }
.ohc-outline-label { fill: #1f6f6b; font: 28px system-ui, sans-serif; text-anchor: middle; }
.ohc-tracing { fill: rgba(176, 122, 18, 0.15); stroke: #b07a12; stroke-width: 3; stroke-dasharray: 8 6; }
.ohc-tracing-dot { fill: #b07a12; }
.ohc-mark { fill: rgba(198, 40, 40, 0.12); stroke: #c62828; stroke-width: 3; stroke-dasharray: 8 5; }
.ohc-mark-text { fill: #c62828; font: 26px system-ui, sans-serif; text-anchor: middle; }
.ohc-mark.ohc-mark-measured { fill: none; stroke-opacity: 0.45; }
.ohc-correct { border: 1px solid #ddd; padding: 0.5rem 0.8rem; margin-top: 0.6rem; background: #fff; }
.ohc-correct h3 { margin: 0.2rem 0 0.4rem; }
.ohc-correct-list { font-size: 0.9em; margin: 0.6rem 0 0; padding-left: 1.2rem; }
.ohc-correct-chooser { margin-top: 0.6rem; }
.ohc-house-controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.5rem 0; }
.ohc-slider { flex: 1 1 14rem; }
.ohc-when { font-variant-numeric: tabular-nums; }
.ohc-legend { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85em; color: #4e565a; margin: 0.3rem 0 0.8rem; }
.ohc-legend-ramp { width: 14rem; height: 0.8rem; border: 1px solid #ccc; }
.ohc-plan { max-width: 40rem; }
.ohc-plan-svg { width: 100%; height: auto; border: 1px solid #ddd; background: #fff; }
.ohc-room { stroke: #333; stroke-width: 2; fill: #ddd; fill-opacity: 0.85; }
.ohc-room-label { font: 26px system-ui, sans-serif; fill: #222; text-anchor: middle; pointer-events: none; }
.ohc-tip { position: fixed; background: #222; color: #fff; padding: 0.2rem 0.5rem; font-size: 0.85em; border-radius: 3px; pointer-events: none; z-index: 10; }
.ohc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.ohc-chip { padding: 0.15rem 0.5rem; border-radius: 3px; border: 1px solid #bbb; font-size: 0.85em; }
.ohc-three canvas { border: 1px solid #ddd; max-width: 100%; height: auto; cursor: grab; }
.ohc-suggested { fill: rgba(31, 111, 107, 0.10); stroke: #1f6f6b; stroke-width: 3; stroke-dasharray: 4 6; }
.ohc-window { stroke: #1f3d5c; stroke-width: 7; stroke-linecap: butt; }
.ohc-door { stroke: #8a6b45; stroke-width: 5; stroke-dasharray: 6 4; }
.ohc-dome { fill: rgba(160, 200, 240, 0.7); stroke: #1f3d5c; stroke-width: 2; }
.ohc-window.ohc-screened { stroke: #1f6f6b; }
.ohc-dome.ohc-screened { fill: rgba(31, 111, 107, 0.55); stroke: #1f6f6b; }
.ohc .ohc-delete { color: #96331f; }
.ohc-languages { display: flex; gap: 0.3rem; justify-content: flex-end; margin-bottom: 0.5rem; }

/* Q104: the report on paper, or saved as a PDF from the print window.
   Only the report is printed -- not the site around it, not a button,
   a slider or the text copy of the report -- in its own colours, and a
   table, a plan or the 3D house is not cut across two pages. */
.ohc .ohc-print-only { display: none; }
@media print {
  body * { visibility: hidden !important; }
  #overheating-check, #overheating-check * { visibility: visible !important; }
  #overheating-check { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; }
  .ohc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ohc .ohc-page-strip, .ohc .ohc-languages, .ohc button, .ohc input, .ohc .ohc-check,
  .ohc details, .ohc .ohc-print-hide, .ohc-tip { display: none !important; }
  .ohc .ohc-print-only { display: block !important; }
  .ohc .ohc-print-head { font-weight: 600; margin: 0 0 0.5rem; }
  .ohc h2, .ohc h3, .ohc h4 { break-after: avoid; }
  .ohc tr, .ohc .ohc-plan, .ohc .ohc-three, .ohc .ohc-print-storey { break-inside: avoid; }
  .ohc .ohc-three canvas { border: none; }
}
