/* Print Stylesheet for seatonvalleycommunitycouncil.gov.uk */

/* Hide unnecessary elements */
footer, nav, .sidebar, .social-icons, .breadcrumbs, .carousel, .ad-banner, .newsletter-signup, .comments, .print-only, .sidebar-container, .cell.large-4.show-for-large, .pagination, .alm-load-more-btn {
    display: none;
}

.top-bar-right, .top-nav {
    display: none;
}

.cell{
    width: 100% !important;
    margin: 0 !important;
}

/* Ensure the main content is displayed */
main, .content, .article, .post {
    display: block;
    width: 100%;
}

/* Adjust font size and line height for readability */
body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: none;
}

/* Remove background colors and images */
* {
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Ensure links are printed in a readable way */
a:link, a:visited {
    color: #000;
    text-decoration: underline;
}

a:after{
    content: '' !important;
}

/* Adjust table formatting */
table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #000;
}

th, td {
    padding: 5px;
    text-align: left;
}

/* Images: only show if necessary */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure code blocks are styled correctly */
pre, code {
    background: #f4f4f4;
    color: #000;
    padding: 10px;
    overflow: auto;
    white-space: pre-wrap;
}

/* Hide elements with certain classes */
.no-print {
    display: none;
}

/* Handle printing of forms */
input, textarea, select, button {
    font-size: 12pt;
    color: #000;
    background: none;
    border: 1px solid #000;
    padding: 5px;
    display: block;
    margin-bottom: 10px;
}

label {
    font-weight: bold;
}

/* Handle media queries for different print sizes */
@page {
    margin: 1cm;
}

@media print {
    body {
        margin: 0;
        padding: 0;
    }
    .page-break {
        page-break-before: always;
    }
    * {
        page-break-before: avoid !important;
        page-break-after: avoid !important;
    }
}
