/* EX3: Print stylesheet — extracted from globals.css for PSI8 */
/* Only loaded when printing, not during screen rendering */

/* Hide nav, footer, interactive elements */
header,
footer,
nav,
.skip-to-content,
button,
.no-print,
[data-slot="trigger"],
.maplibregl-control-container {
  display: none !important;
}

/* Reset backgrounds for ink saving */
body,
main,
.bg-section,
.bg-background {
  background: white !important;
  color: black !important;
}

/* Optimize layout for A4 */
.max-w-7xl,
.max-w-6xl,
.max-w-5xl {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure images print */
img {
  max-width: 100% !important;
  page-break-inside: avoid;
}

/* Avoid breaking inside cards and sections */
.rounded-2xl,
.rounded-xl,
section,
article {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* Show link URLs in print */
a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 0.75em;
  color: #666;
  word-break: break-all;
}

/* Internal links: don't show URL */
a[href^="/"]::after,
a[href^="#"]::after {
  content: none;
}

/* Remove shadows and decorative borders */
* {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Map container: show as placeholder */
.maplibregl-map {
  border: 1px solid #ccc !important;
  min-height: 200px;
}

/* Grid adjustments for print */
.grid {
  display: block !important;
}

.grid > * {
  margin-bottom: 1rem;
}
