/* ────────────────────────────────────────────────────────────
   Print stylesheet — completely rebuilds layout for paper/PDF
   Linked with media="print" so zero impact on screen render
───────────────────────────────────────────────────────────── */

@page {
  margin: 0.55in 0.65in;
  size: letter;
}

/* ── Reset ─────────────────────────────────────────────── */

* {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: white !important;
  color: #1a1a1a !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 8.5pt !important;
  line-height: 1.5 !important;
}

a { color: inherit !important; text-decoration: none !important; }
ul { list-style: none !important; }

/* ── Hide screen-only chrome ───────────────────────────── */

.scroll-progress,
.sidebar-nav,
.sidebar-section:first-child,   /* Navigate section */
.viewcount,
.sidebar-section:last-child,    /* This Page section */
.homelab-footer,
.hero-avatar::after {
  display: none !important;
}

/* ── Hero → compact header ─────────────────────────────── */

.hero {
  background: white !important;
  border-bottom: 1.5pt solid #1a1a1a !important;
  padding: 0 0 9pt !important;
  overflow: visible !important;
}

.hero::before,
.hero::after {
  display: none !important;
}

.hero-inner {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10pt !important;
  max-width: none !important;
}

.hero-avatar {
  width: 42pt !important;
  height: 42pt !important;
  font-size: 13pt !important;
  background: #f2f2f2 !important;
  border: 1pt solid #ccc !important;
  color: #444 !important;
  flex-shrink: 0 !important;
  position: static !important;
}

.hero-info h1 {
  font-size: 20pt !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  background: none !important;
  -webkit-text-fill-color: #1a1a1a !important;
  color: #1a1a1a !important;
  line-height: 1.1 !important;
}

.hero-title {
  font-size: 8pt !important;
  color: #555 !important;
  margin-top: 2pt !important;
}

.hero-tagline {
  display: none !important;
}

.hero-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  margin-top: 4pt !important;
}

.hero-link {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: #333 !important;
  font-size: 7.5pt !important;
  gap: 3pt !important;
}

/* pipe separator between links */
.hero-link + .hero-link::before {
  content: '·';
  color: #bbb;
  margin: 0 5pt;
}

.hero-link svg { display: none !important; }

/* ── Layout → single column, sidebar after content ─────── */

.layout {
  display: flex !important;
  flex-direction: column !important;
  max-width: none !important;
}

.content {
  order: 1 !important;
  padding: 14pt 0 0 !important;
}

.sidebar {
  order: 2 !important;
  position: static !important;
  height: auto !important;
  overflow: visible !important;
  border-right: none !important;
  border-top: 1pt solid #ddd !important;
  padding: 10pt 0 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 20pt !important;
}

/* ── Section headings ──────────────────────────────────── */

.section {
  margin-bottom: 12pt !important;
}

.section-heading {
  font-size: 6.5pt !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  color: #555 !important;
  border-bottom: 0.5pt solid #ccc !important;
  padding-bottom: 3pt !important;
  margin-bottom: 8pt !important;
}

/* ── About ─────────────────────────────────────────────── */

.summary-text {
  font-size: 8pt !important;
  color: #333 !important;
  line-height: 1.55 !important;
  max-width: none !important;
}

/* ── Experience ────────────────────────────────────────── */

.exp-item {
  display: grid !important;
  grid-template-columns: 12px 1fr !important;
  gap: 0 8pt !important;
}

.exp-dot {
  background: #444 !important;
  box-shadow: none !important;
  width: 8px !important;
  height: 8px !important;
}

.exp-line { background: #ccc !important; }

.exp-body { padding-bottom: 9pt !important; }
.exp-item:last-child .exp-body { padding-bottom: 0 !important; }

.exp-company {
  font-size: 9.5pt !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  flex-wrap: wrap !important;
}

.exp-location { color: #777 !important; font-size: 7.5pt !important; }

.exp-roles { margin-bottom: 5pt !important; }

.exp-role-title { font-size: 8pt !important; color: #444 !important; }
.exp-role-date  { font-size: 7.5pt !important; color: #888 !important; }

.exp-badge {
  font-size: 5.5pt !important;
  background: #f0f0f0 !important;
  border-color: #ccc !important;
  color: #555 !important;
}

.exp-bullets li {
  font-size: 7.5pt !important;
  color: #333 !important;
  margin-bottom: 2pt !important;
  line-height: 1.5 !important;
}

.exp-bullets li::before { color: #888 !important; }
.exp-bullets li strong  { color: #1a1a1a !important; }

/* ── Projects ──────────────────────────────────────────── */

.projects-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 7pt !important;
}

.project-card {
  background: #fafafa !important;
  border: 0.5pt solid #ddd !important;
  border-radius: 4pt !important;
  padding: 7pt 8pt !important;
  box-shadow: none !important;
  transform: none !important;
  break-inside: avoid !important;
}

.project-title  { font-size: 8pt !important; color: #1a1a1a !important; }
.project-desc   { font-size: 7pt !important; color: #555 !important; margin-bottom: 4pt !important; }

.project-metric {
  font-size: 6.5pt !important;
  color: #555 !important;
  background: #efefef !important;
  padding: 1.5pt 4pt !important;
  display: inline-block !important;
  margin-bottom: 4pt !important;
}

.project-tag {
  font-size: 6pt !important;
  background: #efefef !important;
  border-color: #ddd !important;
  color: #555 !important;
  padding: 0.5pt 3pt !important;
}

/* ── Home Lab ──────────────────────────────────────────── */

.homelab-intro {
  font-size: 7.5pt !important;
  color: #444 !important;
  margin-bottom: 8pt !important;
}

.homelab-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 5pt !important;
}

.homelab-card {
  background: #fafafa !important;
  border: 0.5pt solid #ddd !important;
  border-radius: 4pt !important;
  padding: 5pt 7pt !important;
  break-inside: avoid !important;
}

.homelab-card-title { font-size: 6pt !important; color: #888 !important; }

.homelab-tag {
  font-size: 6.5pt !important;
  background: #efefef !important;
  border-color: #ddd !important;
  color: #444 !important;
  padding: 0.5pt 3pt !important;
}

/* ── Education ─────────────────────────────────────────── */

.edu-list { gap: 6pt !important; }

.edu-item {
  background: none !important;
  border: none !important;
  border-left: 1.5pt solid #bbb !important;
  border-radius: 0 !important;
  padding: 0 0 0 7pt !important;
}

.edu-degree { font-size: 8.5pt !important; color: #1a1a1a !important; }
.edu-school  { font-size: 7.5pt !important; color: #555 !important; }
.edu-detail  { font-size: 7pt !important;   color: #777 !important; }
.edu-date    { font-size: 7pt !important;   color: #777 !important; }

/* ── Sidebar (skills + certs) rendered as two columns ── */

.sidebar-section {
  margin-bottom: 10pt !important;
  padding: 0 !important;
}

.sidebar-heading {
  font-size: 6.5pt !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: #555 !important;
  border-bottom: 0.5pt solid #ccc !important;
  padding-bottom: 2pt !important;
  margin-bottom: 6pt !important;
}

/* Skills — label + tags on one row */
.skill-group {
  display: flex !important;
  align-items: baseline !important;
  gap: 5pt !important;
  margin-bottom: 3pt !important;
}

.skill-group-label {
  font-size: 6.5pt !important;
  color: #666 !important;
  white-space: nowrap !important;
  min-width: 80pt !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.skill-tags { gap: 2pt !important; }

.skill-tag {
  font-size: 6.5pt !important;
  background: #f2f2f2 !important;
  border-color: #ddd !important;
  color: #333 !important;
  padding: 0.5pt 3.5pt !important;
}

/* Certs — horizontal wrap */
.cert-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 4pt 12pt !important;
}

.cert-item {
  background: none !important;
  border: none !important;
  border-left: 1.5pt solid #bbb !important;
  border-radius: 0 !important;
  padding: 0 0 0 5pt !important;
}

.cert-name { font-size: 7.5pt !important; color: #1a1a1a !important; }
.cert-date  { font-size: 6.5pt !important; color: #777 !important; }

/* ── Kill all animations ────────────────────────────────── */

.animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── Page break hints ──────────────────────────────────── */

.exp-item     { break-inside: avoid; }
.project-card { break-inside: avoid; }
.homelab-card { break-inside: avoid; }
.edu-item     { break-inside: avoid; }
#projects     { break-before: auto; }
