/* statement.css: the Property Running Cost Statement (paid page and public
   sample). Its own file, not styles.css, because styles.css can be served a
   day stale. Paper look on screen, A4 in print. */
.st-main { max-width: 900px; margin: 0 auto; padding: 24px 16px 64px; }
.st-doc { background: #fff; color: #14202b; border-radius: 10px; padding: 28px 28px 20px; font-size: 15px; line-height: 1.5;
  box-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.st-doc h1 { font-size: 24px; margin: 2px 0 0; color: #14202b; }
.st-doc h2 { font-size: 17px; margin: 0 0 10px; color: #14202b; }
.st-brand { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #006b6b; font-weight: 700; }
.st-sample-band { margin: -28px -28px 18px; padding: 8px 28px; background: #fff4d6; color: #5c4400; border-radius: 10px 10px 0 0; font-size: 13px; font-weight: 600; }
.st-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #14202b; }
.st-meta { display: grid; grid-template-columns: auto auto; gap: 2px 12px; margin: 0; font-size: 13px; }
.st-meta div, .st-facts div { display: contents; }
.st-meta dt, .st-facts dt { color: #5a6774; }
.st-meta dd, .st-facts dd { margin: 0; font-weight: 600; }
.st-section { padding: 16px 0; border-bottom: 1px solid #dfe4ea; }
.st-section:last-of-type { border-bottom: 0; }
.st-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.st-facts dd { font-weight: 500; }
.st-total { font-size: 34px; font-weight: 700; margin: 0; }
.st-total span { font-size: 16px; font-weight: 500; color: #5a6774; }
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th, .st-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #e6eaef; }
.st-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5a6774; border-bottom: 1px solid #14202b; }
.st-table tfoot th, .st-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid #14202b; }
.st-table .st-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-line-name { font-weight: 600; }
.st-working { margin: 4px 0 0; font-weight: 400; font-size: 13px; color: #44515e; }
.st-src { font-size: 13px; color: #44515e; min-width: 160px; }
.st-period { color: #6b7783; }
.st-ours { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #5a6774; }
.st-missing { color: #8a5a00; font-weight: 600; }
.st-chip { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px; border: 1px solid; }
.st-official { color: #00594f; border-color: #00594f; }
.st-modelled { color: #1f4e99; border-color: #1f4e99; }
.st-estimated { color: #8a5a00; border-color: #8a5a00; }
.st-user { color: #6b2fa3; border-color: #6b2fa3; }
.st-missing.st-chip, .st-chip.st-missing { color: #8a1f1f; border-color: #8a1f1f; }
.st-note { font-size: 13px; color: #44515e; }
.st-check ol { margin: 0; padding-left: 22px; }
.st-check li { margin: 4px 0; }
.st-legend ul { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.st-legend li { margin: 4px 0; }
.st-legend p { font-size: 13px; color: #44515e; }
.st-foot { margin-top: 12px; font-size: 11px; color: #6b7783; text-align: center; }

/* Screen-only controls on the paid page. */
.st-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.st-bar button, .st-bar a { min-height: 44px; }
.st-status { padding: 16px; border: 1px solid var(--border, #2a3446); border-radius: 10px; margin-bottom: 16px; }
.st-own { margin: 20px 0; padding: 18px; border: 1px solid var(--border, #2a3446); border-radius: 10px; }
.st-own h2 { margin: 0 0 6px; font-size: 18px; }
.st-own-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; margin: 12px 0; }
.st-own label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.st-own input[type="text"], .st-own select { width: 100%; min-height: 44px; padding: 8px 10px; font-size: 16px; box-sizing: border-box; }
.st-own .st-check-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.st-sample-cta { margin: 20px 0; text-align: center; }

@media (max-width: 640px) {
  .st-doc { padding: 18px 14px; border-radius: 0; margin: 0 -16px; }
  .st-sample-band { margin: -18px -14px 14px; padding: 8px 14px; border-radius: 0; }
  .st-total { font-size: 28px; }
  .st-src { min-width: 0; }
  .st-table th, .st-table td { padding: 8px 4px; }
}

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff !important; }
  .nav, .site-footer, .st-bar, .st-status, .st-own, .st-sample-cta, .no-print { display: none !important; }
  .st-main { max-width: none; padding: 0; }
  .st-doc { box-shadow: none; padding: 0; border-radius: 0; font-size: 11.5pt; }
  .st-sample-band { margin: 0 0 10px; border-radius: 0; }
  .st-table-wrap { overflow: visible; }
  .st-table { font-size: 10pt; }
  .st-table tr, .st-check li { break-inside: avoid; }
  /* Chrome repeats a tfoot on every printed page, which put the yearly total
     under the first three lines. Print it once, at the end of the table. */
  .st-table tfoot { display: table-row-group; }
  .st-section { break-inside: auto; }
  .st-section h2 { break-after: avoid; }
  .st-chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
