/* ── Print-ready guide styles ── */
@font-face { font-family: 'Satoshi'; src: url('../../uploads/Satoshi-Regular.otf') format('opentype'); font-weight: 400; }
@font-face { font-family: 'Satoshi'; src: url('../../uploads/Satoshi-Medium.otf') format('opentype'); font-weight: 500; }
@font-face { font-family: 'Satoshi'; src: url('../../uploads/Satoshi-Bold.otf') format('opentype'); font-weight: 700; }
@font-face { font-family: 'Satoshi'; src: url('../../uploads/Satoshi-Black.otf') format('opentype'); font-weight: 900; }

:root {
    --purple: #7C5CFF;
    --purple-deep: #6B4DE6;
    --purple-soft: #F3EFFF;
    --text: #1A1A1A;
    --text-soft: #555;
    --border: #ebebeb;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Satoshi', -apple-system, sans-serif;
    color: var(--text);
    background: #f5f5f5;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding: 24px 16px 80px;
}

/* On-screen action bar at top */
.actions {
    max-width: 8.5in;
    margin: 0 auto 24px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
}
.actions-left { display: flex; align-items: center; gap: 12px; }
.actions-back {
    color: var(--purple);
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.actions-back:hover { border-color: var(--purple); }
.actions-right { display: flex; gap: 10px; }
.btn-print {
    background: var(--purple); color: white;
    border: none; padding: 10px 20px;
    border-radius: 8px; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background 0.2s, transform 0.2s;
}
.btn-print:hover { background: var(--purple-deep); transform: translateY(-1px); }

/* The "page" — 8.5×11 letter */
.page {
    width: 8.5in;
    min-height: 11in;
    background: white;
    margin: 0 auto;
    padding: 0.6in 0.7in;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    color: var(--text);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header with Inscriti logo */
.page-header {
    border-bottom: 3px solid var(--purple);
    padding-bottom: 18px;
    margin-bottom: 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.page-header-logo img { height: 32px; display: block; }
.page-header-title {
    text-align: right;
    color: var(--purple);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.page-header-title .small {
    color: #888;
    font-size: 11px;
    letter-spacing: 0.04em;
    font-weight: 500;
    text-transform: none;
    margin-top: 2px;
    display: block;
}

/* Page heading */
.page h1 {
    font-size: 30pt;
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 6px;
}
.page-intro {
    font-size: 12pt;
    color: var(--text-soft);
    margin-bottom: 22px;
}

/* Sections */
.page-section {
    margin-bottom: 22px;
    break-inside: avoid;
}
.page-section h2 {
    font-size: 14pt;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}
.page-section h2::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--purple);
    flex-shrink: 0;
}
.page-section ol, .page-section ul {
    margin-left: 22px;
    color: var(--text);
    font-size: 11pt;
}
.page-section ol li, .page-section ul li {
    margin-bottom: 6px;
    line-height: 1.5;
}
.page-section ol { counter-reset: step; list-style: none; margin-left: 0; }
.page-section ol li {
    counter-increment: step;
    position: relative;
    padding-left: 32px;
    margin-bottom: 8px;
}
.page-section ol li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 22px; height: 22px;
    background: var(--purple-soft);
    color: var(--purple);
    font-weight: 700;
    font-size: 11pt;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.page-section p { font-size: 11pt; margin-bottom: 8px; }
.page-section strong { font-weight: 700; }

/* Two-column variant */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Callout box */
.tip {
    background: var(--purple-soft);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 10.5pt;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.tip strong { color: var(--purple); }

/* Checklist */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.checklist li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 11pt;
    border-bottom: 1px dashed #ddd;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 18px; height: 18px;
    border: 2px solid var(--purple);
    border-radius: 4px;
    background: white;
}
.checklist li:last-child { border-bottom: none; }

/* Page footer */
.page-foot {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #ddd;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 9pt; color: #888;
}
.page-foot-jfeld { display: flex; align-items: center; gap: 6px; }
.page-foot-jfeld img { height: 14px; }

/* Print rules */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .actions { display: none; }
    .page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0.4in 0.5in;
        box-shadow: none;
    }
    @page {
        size: letter;
        margin: 0;
    }
}

/* Mobile screen */
@media (max-width: 900px) {
    .page {
        width: 100%;
        padding: 32px 24px;
    }
    .page h1 { font-size: 26pt; }
    .two-col { grid-template-columns: 1fr; gap: 8px; }
}
