/* =========================================================
   PRINT (loaded with media="print": never applies on screen)
   One readable column, black on white: no glass, no fixed heights,
   no inner scroll area, no effects. The experience entries print
   in full (their drawer text), since there is no drawer on paper.
========================================================= */

@page {
  margin: 1.5cm;
}

/* ---------- Plain paper: no background, glass, masks or motion ---------- */
html,
body {
  height: auto !important;
  overflow: visible !important;
  background: #fff !important;
  color: #000 !important;
}

body {
  display: block !important;
  &::before {
    display: none !important;
  }
}

*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.glass {
  background: none !important;
  outline: none !important;
  overflow: visible !important;
  &::before,
  &::after {
    display: none !important;
  }
}

/* ---------- Not useful on paper ---------- */
.skip-link,
.layout > header,
.layout > aside,
.to-top,
.tip,
dialog,
.hero__actions,
.hero__typed-line,
.read-more-btn,
.exp-more,
.skill-scale,
.skill-legend,
.copy-btn,
#contact-form,
.projects-band {
  display: none !important;
}

/* the typed line's full sentence (normally screen-reader only) prints instead */
.hero__typed .visually-hidden {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

/* ---------- One column, natural height ---------- */
.layout {
  display: block !important;
  max-width: none !important;
  height: auto !important;
  padding: 0 !important;
}

.layout main {
  border-radius: 0 !important;
}

main > .content-wrapper {
  position: static !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  mask-image: none !important;
}

.layout section.hero {
  min-height: 0 !important;
  padding-block: 0 1rem !important;
}

.layout main section {
  margin-bottom: 2rem !important;
}

/* ---------- Colors: black text, gray secondary ---------- */
.layout {
  --accent-color: #000;
  --text-muted: #444;
  --line-color: #ccc;
  --surface-color: transparent;
}

/* ---------- Experience: full text, entries kept whole when possible ---------- */
.timeline__more {
  display: block !important;
  margin-top: 0.5rem;
}

/* the short summary repeats the first paragraph of the full text */
.timeline__summary {
  display: none !important;
}

.timeline__item,
.skill-area,
.principles > li {
  break-inside: avoid;
}

h2,
h3 {
  break-after: avoid;
}

/* ---------- External links: show where they go ---------- */
.content-wrapper a[href^="http"]::after,
.content-wrapper a[href^="mailto:"]::after {
  content: " (" attr(href) ")";
  font-size: 0.85em;
  color: #444;
}
