/* Print: the words and photographs of a page, without the controls that only work on a screen. Linked with media="print",
   so it never loads for screen viewing. */
@page { margin: 16mm 14mm; }
html, body { background: #fff !important; color: #000 !important; }
body { font-size: 11pt; line-height: 1.45; }

/* Controls and overlays that do nothing on paper */
.skip, .nav-toggle, .mast nav, .mast-cta, .mast-globe, .tcg-island, .tcg-island-space, .announce,
.globe-controls, .globe-panel, .globe-find, .maplibregl-ctrl, .enter-bar button, .join-dock, .back-to-top,
.dk-dock, .menu-overlay, .modal-wrap, .tcg-join-dialog, .cookie, video, [data-hero-video], .reel, .ed-photo-strip + .ed-strip-count,
form button, form [type="submit"], .form-progress, .copy-btn { display: none !important; }
.mast { position: relative !important; border-bottom: 1px solid #000; }
.mast::before, .mast::after { display: none !important; }

/* Everything revealed by scrolling is shown */
[data-ed-reveal], [data-ed-hero], .ph-rise, .ed-revealing, [data-reveal], .reveal, .item, .dk-photo {
  opacity: 1 !important; transform: none !important; translate: none !important; animation: none !important; filter: none !important; visibility: visible !important;
}
.sticky, .sticky-wrapper, .page--home .dk-cover, [style*="position: sticky"] { position: static !important; }

/* Photographs and headings stay whole */
img, picture, figure, .ed-photo { break-inside: avoid; max-width: 100% !important; }
h1, h2, h3, h4 { break-after: avoid; }
.ed-photo-strip { display: block !important; overflow: visible !important; }
.ed-photo-strip .ed-photo { margin-bottom: 8mm; }
details > * { display: block !important; }

/* A printed page cannot be clicked: show where an outside link goes */
main p a[href^="http"]:not([href*="thecommonground.living"])::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
main p a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

/* Light text on a dark screen background would print white on white */
main, main *, footer, footer * { filter: none !important; opacity: 1 !important; color: #000 !important; text-shadow: none !important; -webkit-text-fill-color: #000 !important; }
main [style*="background"], .story-head, .page-head, .hero, .enter-page, .enter { background: #fff !important; }

/* Nothing animates into place on paper */
*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

/* Screen-height blocks would leave a page of white space */
main, main * { min-height: 0 !important; }
main section, main header, main article, main div[class*="hero"], main div[class*="stage"] { height: auto !important; }
