/* ===================================================================
   EvoCloud 2.0 User Guide -- print stylesheet
   -------------------------------------------------------------------
   Loaded with media="print" from every guide page. Goals: readable,
   ink-friendly output -- black text on white, no chrome, no backgrounds,
   boxes kept via borders, no orphaned steps across page breaks.
   Pure ASCII. Companion to assets/evo-guide.css.
   =================================================================== */

@page {
    margin: 2cm;
}

html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    line-height: 1.45;
}

/* ---- Chrome that has no meaning on paper -------------------------- */
.eg_topbar,
.eg_crumbs,
.eg_toc,
.eg_help,
.eg_printbar {
    display: none !important;
}

/* ---- Page shell: use the full sheet ------------------------------- */
.eg_page {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ---- Headings ------------------------------------------------------ */
h1, h2, h3, h4 {
    color: #000000 !important;
    page-break-after: avoid;
    break-after: avoid;
}

.eg_eyebrow { color: #444444 !important; }
.eg_lede { color: #222222 !important; }

/* ---- Keep logical blocks on one page ------------------------------- */
.eg_step,
.eg_prereq,
.eg_note,
.eg_tip,
.eg_warn,
.eg_next,
table.eg_table tr {
    page-break-inside: avoid;
    break-inside: avoid;
}

/* ---- Boxes: borders instead of ink-heavy backgrounds ---------------- */
.eg_step,
.eg_prereq,
.eg_next {
    background: #ffffff !important;
    border: 1px solid #999999 !important;
    box-shadow: none !important;
}
.eg_note,
.eg_tip,
.eg_warn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #666666 !important;
    border-left-width: 4px !important;
}

.eg_step_num {
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ---- Tables --------------------------------------------------------- */
table.eg_table {
    border-collapse: collapse;
    width: 100%;
}
table.eg_table th,
table.eg_table td {
    border: 1px solid #888888 !important;
    background: #ffffff !important;
    color: #000000 !important;
}

/* ---- Links: readable, with the destination for external ones -------- */
a {
    color: #000000 !important;
    text-decoration: underline;
}
a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #333333;
    word-break: break-all;
}

/* ---- Screenshots: fit the sheet, keep with their caption ------------ */
.eg_shot {
    page-break-inside: avoid;
    break-inside: avoid;
}
.eg_shot img {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    border: 1px solid #999999 !important;
    box-shadow: none !important;
}
.eg_shot_wide { overflow-x: visible; }
.eg_shot figcaption { color: #333333 !important; }

/* Menu paths print as plain emphasized text */
.eg_path {
    background: none !important;
    border: none !important;
    color: #000000 !important;
    font-weight: 700;
}
