Spaces:
Configuration error
Configuration error
| /* v0.4.2 §18 — browser print stylesheet (Cmd-P → Save as PDF). | |
| Letter, 1in margins (1.25in left for tier glyphs), Plex Serif body. | |
| Hides app chrome; appends the citation drawer as a final-page appendix | |
| when the caller adds the .print-appendix class to the drawer. | |
| Distinct from the WeasyPrint export (federal-grant-submission artifact); | |
| this is "I need this on paper now." | |
| */ | |
| @media print { | |
| /* Hide app chrome — paper version is briefing + citations only. */ | |
| .app-header, | |
| .app-footer, | |
| .tweaks-panel, | |
| .skip-link, | |
| .map-frame, | |
| .app-region-map, | |
| .trace-ui, | |
| .app-region-trace, | |
| .citation-drawer, | |
| .region-action, | |
| .map-legend, | |
| .generating-status, | |
| .plan-details, | |
| .plan-stream, | |
| .app-header-query-edit, | |
| .reroll-banner, | |
| .reroll-prev, | |
| .skeleton-brief { | |
| display: none ; | |
| } | |
| body { | |
| background: white ; | |
| color: black ; | |
| font-size: 11pt; | |
| } | |
| .hero-band, | |
| .hero-band-inner { | |
| background: white ; | |
| padding: 0 ; | |
| max-width: none ; | |
| } | |
| .app-shell, | |
| .app-shell-desktop, | |
| .app-shell-tablet, | |
| .app-shell-mobile { | |
| display: block ; | |
| grid-template-columns: 1fr ; | |
| grid-template-areas: none ; | |
| } | |
| .briefing-prose { | |
| font-family: var(--font-serif), Georgia, serif ; | |
| max-width: 100%; | |
| font-size: 11pt; | |
| line-height: 1.5; | |
| } | |
| .brief-h1 { | |
| font-size: 22pt ; | |
| page-break-after: avoid; | |
| } | |
| .briefing-section-head { | |
| break-after: avoid-page; | |
| border-top: 1pt solid black; | |
| margin-top: 14pt ; | |
| } | |
| .briefing-para { | |
| orphans: 3; | |
| widows: 3; | |
| } | |
| /* Citation appendix appears at end of print when drawer carries | |
| .print-appendix (caller adds it before window.print()). */ | |
| .citation-drawer.print-appendix { | |
| display: block ; | |
| page-break-before: always; | |
| } | |
| .citation-list { | |
| gap: 6pt ; | |
| } | |
| .citation-item { | |
| break-inside: avoid; | |
| } | |
| /* Force tier glyphs + citation marks to print in color. */ | |
| * { | |
| -webkit-print-color-adjust: exact ; | |
| print-color-adjust: exact ; | |
| } | |
| a { | |
| color: inherit ; | |
| text-decoration: none; | |
| } | |
| .inline-cite { | |
| color: #0B5394 ; | |
| } | |
| @page { | |
| size: letter; | |
| margin: 1in 1in 1in 1.25in; /* extra left margin for tier glyphs */ | |
| @top-left { | |
| content: "riprap · " var(--print-address, "flood-exposure briefing"); | |
| font: 9pt "IBM Plex Mono"; | |
| color: #334155; | |
| } | |
| @top-right { | |
| content: "Generated " var(--print-date, "today") " · v0.4.2"; | |
| font: 9pt "IBM Plex Mono"; | |
| color: #334155; | |
| } | |
| @bottom-left { | |
| content: var(--print-url, "riprap.nyc"); | |
| font: 9pt "IBM Plex Mono"; | |
| color: #6B6B6B; | |
| } | |
| @bottom-right { | |
| content: "page " counter(page) " of " counter(pages); | |
| font: 9pt "IBM Plex Mono"; | |
| } | |
| } | |
| } | |