.roof-page h1 { font-size: 46px; letter-spacing: 0; }
.roof-page h2 { font-size: 30px; letter-spacing: 0; }
.roof-page h3 { letter-spacing: 0; }
.roof-page .article-section { padding: 32px 0; }
.roof-page .article-shell, .roof-calculator, .roof-fields > * { min-width: 0; }
.roof-page .formula-callout strong { font-size: 19px; overflow-wrap: anywhere; }
.roof-page .desktop-nav span, .roof-page .mobile-nav span, .roof-page .site-footer span { color: #68717b; }
.roof-page .mobile-nav > span { padding: 10px 0; }
.roof-page .site-footer > div > div > span { display: block; margin: 8px 0; }
.roof-diagram { display: block; width: 100%; height: auto; margin: 24px 0; font: 17px system-ui; }
.roof-slope { border: 0; border-top: 2px solid #386d70; margin: 28px 0; padding: 20px 0; min-width: 0; }
.roof-slope legend { font-size: 22px; font-weight: 700; padding: 0 12px 0 0; }
.roof-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.roof-page label { display: grid; gap: 6px; font-size: 14px; }
.roof-page input, .roof-page select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #aeb9bf; background: white; color: #20252b; font: inherit; border-radius: 0; }
.roof-page input:focus-visible, .roof-page select:focus-visible, .roof-page button:focus-visible { outline: 2px solid #386d70; outline-offset: 2px; }
.roof-fields small { color: #57656a; }
.roof-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.roof-page button { cursor: pointer; }
.roof-page .roof-remove { padding: 8px 14px; background: white; border: 1px solid #aeb9bf; }
.roof-sheet-table { min-width: 960px; font-size: 14px; }
.roof-sheet-table td { padding: 8px; }
.roof-sheet-table input { min-width: 95px; }
.roof-page .table-wrap { max-width: 100%; }
.roof-result { min-height: 55px; padding: 16px 0; border-top: 1px solid #d9dee3; }
.roof-result.error, #roof-status { color: #9b3025; }
.roof-print { display: none; }
@media(max-width: 800px) { .roof-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 560px) { .roof-page h1 { font-size: 32px; overflow-wrap: anywhere; } .roof-page h2 { font-size: 25px; } .roof-fields { grid-template-columns: 1fr; } .roof-page .article-header { padding-top: 32px; } }
@media print {
  .roof-page .site-header, .roof-page .site-footer, .roof-page main > .breadcrumbs, .roof-page main > .cluster-nav, .roof-page main > article, .roof-actions, .roof-slope > .roof-fields, .roof-sheet-table, .roof-remove, .skip-link { display: none !important; }
  .roof-print { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11pt; }
  .roof-page .container { width: 100%; }
  .roof-page #calculator { padding: 0; }
  .roof-slope { break-inside: avoid; }
}
