/* Print layout for every public page (v14.53). Loaded with media="print", so the screen design is not affected.
   - the header prints once, at the top of the first page, as a simple letterhead (never on top of the content)
   - menus, search, floating buttons, pop-ups, cookie notices and the dark footer are left out
   - sticky / fixed parts flow normally, so there are no empty gaps where they were
   - scroll animations are finished, so nothing prints blank; full-screen sections shrink to their content
   - pictures keep their shape and never split across pages; a short line at the end says where the page came from */
@page { size: auto; margin: 14mm 13mm 16mm; }

html, body { background: #fff !important; color: #111 !important; }
html { font-size: 11pt; }
body { margin: 0 !important; padding: 0 !important; overflow: visible !important; }
*, *::before, *::after { animation: none !important; transition: none !important; }

/* ---------- header: one letterhead at the top of page 1 ---------- */
#siteHeader, #siteHeader.scrolled, #siteHeader.hide, .site-header {
  position: static !important; inset: auto !important; transform: none !important; top: auto !important;
  width: auto !important; max-width: none !important; margin: 0 0 7mm !important; padding: 0 0 3mm !important;
  background: none !important; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid #cfc7bb !important;
  border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; opacity: 1 !important; visibility: visible !important;
}
#siteHeader * { background-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#siteHeader > *, #siteHeader .header-inner, #siteHeader .nav-pill { position: static !important; padding: 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; border: 0 !important; }
#siteHeader nav, #siteHeader .nav-links, #siteHeader .nav-menu, #siteHeader .nav-actions, #siteHeader .header-actions, #siteHeader .nav-toggle,
#siteHeader button, #siteHeader form, #siteHeader [role="search"], #siteHeader .search-overlay, #siteHeader .mobile-nav, #siteHeader .nav-cta,
#siteHeader a[href*="visit"]:not(.logo):not(.brand) { display: none !important; }
#siteHeader img { max-height: 15mm !important; width: auto !important; }
#siteHeader, #siteHeader a, #siteHeader span, #siteHeader small { color: #111 !important; text-decoration: none !important; }

/* ---------- parts that do not belong on paper ---------- */
.skip-link, .utility-bar, .site-notice, .notice-bar, .page-loader, .cursor-dot, .cursor-ring, .back-to-top, .scroll-progress,
.cookie-consent, .cookie-banner, .notify-popup, .dm-popup, .popup-overlay, .dm-contact-fab, .vt-fab, .vt-top, .vt-panel, .vt-lb, .a11y-fab,
.search-overlay, .mobile-nav, .mobile-drawer, .mobile-menu, .nav-drawer, .nav-overlay, .drawer-overlay, .toast, [role="alert"].toast, .obj-toast, .obj-lb, .lightbox, .gallery-lightbox,
dialog, .modal, .modal-backdrop, video, audio, iframe, embed, object, .hero-dots, .hero-arrows, .hero-nav, .slider-nav, .carousel-nav,
.pagination-load-more, .load-more, .share-buttons, .social-share, .print-hide, [data-print="hide"],
.site-footer, footer.site-footer, #siteFooter { display: none !important; }
.pr-hide { display: none !important; }

/* ---------- no fixed/sticky positioning, no full-screen gaps ---------- */
.pr-static, [style*="position: sticky"], [style*="position:sticky"] { position: static !important; top: auto !important; bottom: auto !important; transform: none !important; }
main, #main, .page, .container, section, article, aside { overflow: visible !important; }
section, .section, [class*="hero"], .page-hero, .pq { min-height: 0 !important; }
[class*="hero"], .page-hero { height: auto !important; max-height: none !important; padding-top: 6mm !important; padding-bottom: 6mm !important; }
.hero-slide:not(.active):not(.is-active) { display: none !important; }
main > section, .section { padding-top: 5mm !important; padding-bottom: 5mm !important; margin-top: 0 !important; margin-bottom: 0 !important; }
main { padding-top: 0 !important; margin-top: 0 !important; }

/* ---------- finish scroll animations ---------- */
[data-reveal], html.js [data-reveal] { opacity: 1 !important; transform: none !important; visibility: visible !important; }
/* opened answers, badges that sat on a picture, hover overlays */
.pr-open { display: block !important; max-height: none !important; height: auto !important; opacity: 1 !important; visibility: visible !important; overflow: visible !important; }
.about-year-badge { position: static !important; display: inline-block !important; margin: 0 0 3mm !important; transform: none !important; }
[class*="-card"] [class*="overlay"], [class*="-card"] [class*="hover"], .card-actions-hover { display: none !important; }
.hero-dots, .slider-dots, [class*="-dots"], [class*="carousel-"] button, [class*="slider-"] button { display: none !important; }

/* light text and dark bands (marked by print.js) */
.pr-ink { color: #111 !important; -webkit-text-fill-color: #111 !important; }
.pr-light { background: none !important; background-image: none !important; box-shadow: none !important; }
.pr-light::before, .pr-light::after { display: none !important; }
.pr-show { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* ---------- text, links, pictures ---------- */
h1, h2, h3, h4, h5, h6 { break-after: avoid-page; page-break-after: avoid; color: #111 !important; text-shadow: none !important; }
p, li, blockquote, dd { orphans: 3; widows: 3; }
img, svg, figure, picture, blockquote, pre, .card, [class*="-card"]:not([class*="grid"]), .obj-cite-card { break-inside: avoid; page-break-inside: avoid; }
img { max-width: 100% !important; height: auto; filter: none !important; }
a, a:visited { color: inherit !important; text-decoration: none !important; }
[class*="-card"], .card { box-shadow: none !important; }
* { text-shadow: none !important; }
/* title banners print as a clean heading: no dark background, dark text (readable, saves ink) */
.page-hero, .hero-slider, .hero-slide, .hero-track, .hero-inner, .post-hero { background: none !important; background-image: none !important; color: #111 !important; min-height: 0 !important; height: auto !important; }
.page-hero-overlay, .hero-overlay, .hero-media, .hero-bg, .page-hero-bg, .hero-video, [class*="hero"] [class*="overlay"], [class*="hero"] [class*="shade"] { display: none !important; }
.page-hero *, .hero-slider * { color: #111 !important; border-color: #cfc7bb !important; }
.hero-slider, .hero-track, .hero-slide.active { position: static !important; }
.hero-inner, .page-hero-content, [class*="hero"] [class*="inner"], [class*="hero"] [class*="content"] { position: static !important; inset: auto !important; transform: none !important; height: auto !important; min-height: 0 !important; display: block !important; padding: 0 !important; }
.hero-slide.active { opacity: 1 !important; visibility: visible !important; }
.page-hero { padding: 0 0 4mm !important; }
.page-hero h1, .hero-title { font-size: 22pt !important; line-height: 1.2 !important; }
/* maps and video placeholders are empty on paper */
.vp-map, .vp-map-ph, .map-embed, .map-wrap, [class*="map-frame"], .video-embed, .oh-player { display: none !important; }

/* ---------- search boxes, filters, sorting, paging and empty picture boxes are not needed on paper ---------- */
main form, .listing-search, .listing-controls, .cl-toolbar, .cl-filters, .view-toggle, .pagination, .pager, .filter-bar, .sort-bar,
.about-image-placeholder, .img-placeholder, [class*="-placeholder"]:empty { display: none !important; }
main form.pr-keep { display: block !important; }

/* ---------- listings: more per row (a printed page is narrower than a computer screen) ---------- */
.cl-grid.is-grid, .blog-grid, .events-grid, .search-result-grid, .card-grid, .tm-grid.is-grid, .home-team-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 5mm !important; }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4mm !important; }
.gallery-masonry { columns: 3 !important; column-gap: 4mm !important; }
.gallery-masonry > * { break-inside: avoid; margin-bottom: 4mm !important; }
/* card pictures are smaller on paper, so more cards fit on a page */
[class*="-card"] img, .tm-card img, .tm-photo img { max-height: 52mm !important; object-fit: cover; }
[class*="-card"] [class*="img"], [class*="-card"] [class*="photo"], [class*="-card"] [class*="media"] { max-height: 52mm !important; aspect-ratio: auto !important; overflow: hidden !important; }
/* big single pictures stay on one page with the text around them */
.about-image-wrap img, .obj-stage img, [class*="hero"] img, .post-hero img, .featured-image img { max-height: 110mm !important; width: auto !important; max-width: 100% !important; object-fit: contain; }
/* long sections may continue on the next page instead of leaving a gap */
.obj-section, .obj-spec, section, article { break-inside: auto !important; page-break-inside: auto !important; }

/* ---------- where the page came from ---------- */
.pr-foot { display: block !important; margin-top: 8mm; padding-top: 3mm; border-top: 1px solid #cfc7bb; font-size: 8.5pt; color: #555 !important; break-inside: avoid; }
.pr-foot strong { color: #111; }
