/* ===========================
   PRINT: the page prints as a compact, CV-style document
   =========================== */

@page {
    size: A4;
    margin: 14mm 14mm 16mm;
}

/* Interface only: navigation, buttons, chat, filters, decoration */
nav,
.contact-form,
.slider-btn,
.slider-status,
.hero-visual,
.hero-role-container,
.hero-cta,
.hero-social,
.chatbot,
.project-modal,
.project-filter,
.project-filter-empty,
.more-project-link,
.cert-verify-btn,
.contact-actions,
.contact-icon,
.availability-dot,
.about-image-section,
.skill-icon-circle,
.exp-logo,
.meta-icon,
.detail-icon,
.field-icon,
.degree-icon,
.stat-divider,
.article-card-link,
footer,
section h2::after {
    display: none !important;
}

/* Scroll animations leave elements transparent or shifted until seen */
*,
*::before,
*::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    /* Clipped boxes can't split across pages */
    overflow: visible !important;
}

/* Decorative layers */
.hero::before,
.hero::after,
.exp-item::before,
.exp-item::after,
.projects .section-subtitle,
.cert-skills,
.education-highlights {
    display: none !important;
}

html,
body {
    background: #ffffff !important;
    color: #222 !important;
    font-size: 9.5pt;
    line-height: 1.4;
}

main,
section,
.container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    background: none !important;
}

section {
    margin-top: 12pt !important;
}

/* Section headings like a CV */
section h2 {
    text-align: left !important;
    font-size: 11pt !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3f4bc0 !important;
    border-bottom: 1px solid #c9cff5;
    padding-bottom: 2pt;
    margin: 0 0 6pt !important;
    break-after: avoid;
}

h3,
h4,
.section-subtitle,
.skills-group-title,
.cert-group-title,
.exp-aside,
.exp-header,
.exp-summary,
.exp-metrics {
    break-after: avoid;
    color: #1f2a3a !important;
}

.section-subtitle,
.skills-group-title,
.cert-group-title {
    text-align: left !important;
    color: #555 !important;
    font-size: 8.5pt !important;
    margin: 0 0 4pt !important;
}

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

/* Hero becomes the CV header */
.hero {
    min-height: 0 !important;
    padding: 0 0 6pt !important;
    border-bottom: 2px solid #667eea;
    color: #222 !important;
}

.hero *,
.hero-title strong {
    color: inherit !important;
}

.hero-container,
.hero-content {
    display: block !important;
    padding: 0 !important;
    max-width: none !important;
}

.hero-greeting {
    border: 0 !important;
    padding: 0 !important;
    background: none !important;
    color: #3f4bc0 !important;
    font-weight: 600;
}

.hero-name {
    background: none !important;
    -webkit-text-fill-color: #1f2a3a !important;
    font-size: 20pt !important;
    margin: 0 !important;
    color: #1f2a3a !important;
}

.hero-title,
.hero-description {
    margin: 2pt 0 !important;
    font-size: 9.5pt !important;
    max-width: none !important;
}

.hero-stats {
    display: flex !important;
    gap: 16pt !important;
    margin: 4pt 0 !important;
}

.stat-number {
    font-size: 12pt !important;
    color: #3f4bc0 !important;
    margin: 0 !important;
}

.stat-label {
    font-size: 8pt !important;
    color: #555 !important;
}

.hero-facts {
    margin: 4pt 0 0 !important;
    gap: 3pt 6pt !important;
}

.hero-facts li {
    background: #f3f4fb !important;
    border: 0 !important;
    color: #222 !important;
    font-size: 8pt !important;
    padding: 1pt 6pt !important;
}

.fact-label {
    color: #555 !important;
}

/* Cards become plain blocks that don't split across pages */
.skill-category-card,
.exp-item,
.exp-card,
.exp-highlights li,
.education-card,
.cert-card,
.more-project,
.article-card,
.contact-card,
.soft-skill {
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    break-inside: avoid;
}

.skills-grid,
.soft-skills-grid,
.education-grid,
.cert-grid,
.more-projects-grid,
.articles-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6pt 14pt !important;
}

.skill-tags span,
.tech-badge,
.tech-pill {
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 8pt !important;
}

.skill-tags span:not(:last-child)::after,
.tech-badge:not(:last-child)::after {
    content: ' ·';
}

/* Experience: timeline as stacked roles */
.exp-timeline,
.exp-timeline::before {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.exp-item {
    border-top: 1px solid #eee !important;
    padding-top: 6pt !important;
}

.exp-item,
.exp-card {
    break-inside: auto !important;
}

.exp-item {
    display: block !important;
    padding: 0 !important;
    margin: 0 0 8pt !important;
}

.exp-aside {
    display: inline !important;
    font-size: 8.5pt;
    color: #555;
}

.exp-highlights,
.exp-highlights li {
    font-size: 9pt !important;
}

.exp-highlights li {
    padding-left: 12pt !important;
}

.exp-metrics {
    display: flex !important;
    gap: 3pt 12pt !important;
    flex-wrap: wrap;
}

/* Projects: summaries only */
.more-project {
    font-size: 8.5pt;
}

.more-project h4 {
    font-size: 9.5pt !important;
    margin: 0 !important;
}

.more-project p,
.more-project-tech,
.more-project-company {
    margin: 1pt 0 !important;
    font-size: 8.5pt !important;
    color: #444 !important;
}

/* Certifications: three per row */
.cert-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6pt 12pt !important;
}

.cert-card {
    font-size: 8pt;
}

.cert-card h4 {
    font-size: 8.8pt !important;
    margin: 0 !important;
}

.cert-card * {
    margin-top: 0 !important;
    margin-bottom: 1pt !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Education: plain header text */
.education-header,
.degree-level {
    background: none !important;
    color: #3f4bc0 !important;
    padding: 0 !important;
}

.education-content {
    padding: 2pt 0 0 !important;
}

.cert-badge {
    display: none !important;
}

/* Contact as one line of channels */
.contact-card {
    display: block !important;
}

.contact-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 2pt 14pt !important;
    margin-top: 4pt !important;
}

.contact-links a,
.contact-links div {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.contact-text small {
    font-weight: 600;
    margin-right: 3pt;
}

/* Source line at the end of the document */
main::after {
    content: 'Full portfolio, project details and certificate verification: sjpatro.com';
    display: block;
    margin-top: 14pt;
    padding-top: 4pt;
    border-top: 1px solid #ddd;
    font-size: 8pt;
    color: #666;
    text-align: center;
}

html[lang="de"] main::after {
    content: 'Vollständiges Portfolio, Projektdetails und Zertifikatsnachweise: sjpatro.com';
}

/* Sliders print as normal grids, every tile visible */
.slider {
    display: block !important;
}

.slider > .slider-track {
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    padding: 0 !important;
}
