/* Checklist Page Styles */

.checklist-content {
    max-width: 800px;
    margin: 0 auto;
}

.checklist-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem;
}

.checklist-items li {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: background-color 0.15s ease;
}

.checklist-items li:hover {
    background: var(--surface-hover);
}

.checklist-items label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.checklist-items input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checklist-items li:has(input:checked) {
    background: rgba(13, 110, 253, 0.05);
    border-color: var(--primary);
}

.checklist-items li:has(input:checked) label {
    color: var(--text-secondary);
}

.checklist-content h2 {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.checklist-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.checklist-cta {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Print Styles */
@media print {
    /* Hide navigation and non-essential elements */
    header,
    footer,
    .page-hero .hero-cta,
    .checklist-cta,
    .article-legal-disclaimer,
    nav,
    .btn,
    button {
        display: none !important;
    }

    /* Reset page styles */
    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.4;
    }

    .page-hero {
        background: none !important;
        padding: 0 !important;
        margin-bottom: 1rem;
    }

    .page-hero-bg {
        display: none !important;
    }

    .page-hero-title {
        font-size: 18pt;
        color: black !important;
        margin-bottom: 0.5rem;
    }

    .page-hero-subtitle {
        font-size: 10pt;
        color: #333 !important;
    }

    .breadcrumbs {
        display: none;
    }

    .section {
        padding: 0 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .checklist-content {
        max-width: 100%;
    }

    .checklist-intro {
        font-size: 10pt;
        margin-bottom: 1rem;
    }

    /* Style checklist items for print */
    .checklist-items {
        margin: 0.5rem 0 1rem;
    }

    .checklist-items li {
        background: none !important;
        border: none !important;
        padding: 0.25rem 0;
        margin-bottom: 0.25rem;
        page-break-inside: avoid;
    }

    .checklist-items label {
        font-size: 10pt;
    }

    .checklist-items input[type="checkbox"] {
        width: 14px;
        height: 14px;
        min-width: 14px;
        border: 1.5px solid #333;
        appearance: none;
        -webkit-appearance: none;
        background: white;
    }

    .checklist-content h2 {
        font-size: 13pt;
        margin-top: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid #ccc;
        page-break-after: avoid;
    }

    .checklist-content h3 {
        font-size: 11pt;
        page-break-after: avoid;
    }

    .checklist-content p {
        font-size: 10pt;
        orphans: 3;
        widows: 3;
    }

    /* Links in print */
    a {
        color: black !important;
        text-decoration: none !important;
    }

    /* Citation block */
    .cite-this {
        font-size: 9pt;
        border-left: 2px solid #333;
        padding-left: 0.5rem;
        margin: 1rem 0;
    }

    /* Page breaks */
    h2 {
        page-break-after: avoid;
    }

    .checklist-items {
        page-break-inside: avoid;
    }

    /* Print header */
    @page {
        margin: 0.75in;
    }

    /* Show URL after external links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }

    a[href^="/"]:after {
        content: " (cybersecuritycanada.ca" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }
}
