:root {
    --bg-color: #fefefe;
    --card-bg: #ededed;
    --text-main: #111111;
    --text-muted: #555555;
    --accent-color: #8B0000;
    --border-dark: #000000;
    --shadow-sharp: 3px 3px 0px rgba(0, 0, 0, 0.1);
    --font-merriweather: 'Merriweather', serif;
    --container-width: 960px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-merriweather);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Global Content Links */
.content a,
.article-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.content a:hover,
.article-content a:hover {
    color: #5a0000;
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header & Navigation --- */
.site-header {
    padding: 1.5rem 0 0.5rem;
    text-align: center;
}

.masthead {
    margin-bottom: 1.2rem;
}

.masthead-logo img {
    height: 34px;
    width: auto;
}

.site-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    font-style: italic;
}

.nav-main {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 0.6rem 0;
    margin-bottom: 1rem;
}

.nav-link {
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #111;
    letter-spacing: 0.12em;
    padding: 0.2rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- Card Grid --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1.5rem 0;
}

.card {
    background: var(--card-bg);
    border: 0.5px solid var(--border-dark);
    box-shadow: var(--shadow-sharp);
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.12);
}

.card-image-link {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.2rem;
    overflow: hidden;
    border-radius: 2px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 0.5rem 0 0 0;
}

.card-category,
.article-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.featured-article {
    position: relative;
}

.card-category a,
.article-category a {
    text-decoration: none;
    color: inherit;
}

.card-category a:hover,
.article-category a:hover {
    text-decoration: underline;
}

.card-title {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.8rem 0;
    line-height: 1.25;
    font-weight: 800;
}

.card-title a {
    text-decoration: none;
    color: #000;
}

.card-title a:hover {
    color: var(--accent-color);
}

.card-excerpt {
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.excerpt-long {
    -webkit-line-clamp: 7;
    line-clamp: 7;
}

.card-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-author a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

.card-author a:hover {
    text-decoration: underline;
}

/* Read more link */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* --- Single Post Detail --- */
.post-detail {
    padding-top: 0;
}

/* Article card wraps the entire article */
.article-card {
    padding: 0 !important;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* No hover effect on article card */
.article-card:hover {
    transform: none;
    box-shadow: var(--shadow-sharp);
}

/* Hero section with gray background */
.article-hero {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
}

.article-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    min-height: 450px;
}

.article-hero-image {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    max-height: 500px;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article body - white background for content */
.article-body {
    padding: 2rem;
    background: #fff;
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .article-hero {
        flex-direction: column;
        height: auto;
        padding: 1.5rem;
    }

    .article-hero-text {
        text-align: center;
        padding: 1rem 0 0 0;
        min-height: auto;
        /* Reset min-height to remove gap */
    }

    .article-hero-image {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .article-body {
        padding: 1.5rem;
    }
}

/* Hero Variations */
.article-hero.no-image .article-hero-text {
    text-align: center;
    flex: 1;
    width: 100%;
}

/* --- Footnotes --- */
/* --- Footnotes --- */
.footnotes {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    /* Default separator */
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* If the footnotes block is immediately preceded by an HR, 
   we let the HR be the separator and remove this border to avoid double lines. */
hr+.footnotes {
    border-top: none !important;
}

/* Hide any HRs *inside* the footnotes block to prevent duplicates */
.footnotes hr {
    display: none !important;
}

/* Ensure global HRs are solid, single-pixel blocks of color */
hr {
    border: none;
    height: 1px;
    background-color: #eee;
    margin: 2rem 0;
}

/* --- Figures & Captions --- */
figure {
    margin: 2rem 0;
    display: block;
    /* Safer for vertical stacking */
    max-width: 100%;
}

figcaption {
    caption-side: bottom;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

.article-title {
    font-size: 2.6rem;
    font-weight: 900;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.1;
    color: #000;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-author {
    margin-bottom: 0.2rem;
}

.article-author a {
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.article-author a:hover {
    text-decoration: underline;
}

/* Constrain images within article content */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.article-content figure img {
    margin: 0;
    /* Reset margin when inside figure, figure handles spacing */
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid #eee;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-footer a,
.site-footer a:visited {
    color: var(--text-muted) !important;
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--accent-color) !important;
}

.cc-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.15rem;
    position: relative;
    top: -2px;
}

/* --- Page Title --- */
.page-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 1.5rem 0 2rem 0;
    text-align: center;
    color: var(--text-main);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}

.pagination-prev,
.pagination-next {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    transition: all 0.2s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Utility Classes --- */
.no-results {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 3rem 0;
}

.back-link {
    text-align: center;
    margin: 2rem 0;
}

.back-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

.back-link a:hover {
    text-decoration: underline;
}

/* --- Tags Cloud --- */
.tags-cloud {
    max-width: 800px;
    margin: 2rem auto;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag-item {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sharp);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.tag-item:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
}

.tag-name {
    font-size: 1rem;
}

.tag-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.tag-item:hover .tag-count {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Authors Page --- */
.authors-list {
    max-width: 960px;
    margin: 2rem auto;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.author-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem !important;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.author-name a {
    text-decoration: none;
    color: var(--text-main);
}

.author-name a:hover {
    color: var(--accent-color);
}

.author-stats {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.author-preview-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Featured Article (Homepage) --- */
.featured-section {
    margin-bottom: 3rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem !important;
    min-height: 450px;
}

.featured-image {
    overflow: hidden;
    border-radius: 4px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.02);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0.5rem 0 1rem 0;
}

.featured-title a {
    text-decoration: none;
    color: var(--text-main);
}

.featured-title a:hover {
    color: var(--accent-color);
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    text-align: center;
    color: var(--text-main);
}

.view-more {
    text-align: center;
    margin: 3rem 0;
}

.view-more-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-sharp);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.view-more-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Footnotes --- */
.footnotes {
    margin-top: 3rem;
    padding-top: 1.5rem;
    /* border-top removed to avoid double line with markdown hr */
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footnotes ol {
    padding-left: 1.5rem;
}

.footnote-item p {
    margin: 0.5rem 0;
}

.footnote-backref {
    text-decoration: none;
    border: none;
    margin-left: 0.3rem;
    color: var(--accent-color);
}

.footnote-backref:hover {
    text-decoration: underline;
}

sup {
    vertical-align: super;
    font-size: smaller;
}

sup a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Archive View (2-column, horizontal cards) --- */
.archive-year {
    width: 100%;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    color: var(--text-main);
    clear: both;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Archive cards use standard .card styling, just smaller titles */
.archive-card .card-title {
    font-size: 1.1rem;
}

.archive-card .card-image-link {
    aspect-ratio: 4 / 3;
}

/* Placeholder for posts without images */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2147483647;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-overlay.active {
    display: flex !important;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-trigger {
    transition: opacity 0.2s ease;
}

.lightbox-trigger:hover {
    opacity: 0.9;
}

.card-placeholder {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.placeholder-icon {
    font-size: 3rem;
    color: #aaa;
    opacity: 0.6;
}

/* Featured placeholder */
.featured-placeholder {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder a {
    text-decoration: none;
}

.featured-placeholder .placeholder-icon {
    font-size: 5rem;
}

@media (max-width: 900px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Content Typography & Elements --- */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.3rem;
}

/* Nested lists */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* --- Tables --- */
.article-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.article-content th {
    font-weight: 700;
    border-bottom: 2px solid var(--border-dark);
    background-color: transparent;
    vertical-align: bottom;
}

.article-content tr:hover td {
    background-color: #fafafa;
}

/* Responsive table wrapper workaround */
@media (max-width: 768px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================================
   PRINT STYLES - Printer-Friendly Articles
   ============================================ */
@media print {

    /* Page setup */
    @page {
        margin: 1.5cm;
        size: A4;
    }

    /* Hide navigation and footer */
    .nav-main,
    .site-footer,
    .pagination,
    .back-link,
    .tags-cloud,
    .authors-list,
    .featured-section,
    .post-grid,
    .view-more {
        display: none !important;
    }



    .masthead {
        margin-bottom: 0;
    }

    .masthead-logo img {
        max-height: 35px;
    }

    .site-tagline {
        font-size: 0.7rem;
        color: #666;
        margin-top: 0.2rem;
    }

    /* Article container */
    .post-detail {
        padding: 0;
        display: block !important;
    }

    .article-card {
        border: none !important;
        box-shadow: none !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Hero section - make it single column for print */
    .article-hero {
        display: block !important;
        background: white !important;
        padding: 0 !important;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }

    .article-hero-text {
        min-height: auto !important;
        text-align: left !important;
        padding-top: 0.5rem;
    }

    .article-hero-image {
        max-height: 350px !important;
        page-break-inside: avoid;
        margin-top: 0.5rem;
    }

    .article-hero-image img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Article title and metadata */
    .article-title {
        font-size: 1.8rem;
        color: #000;
        margin: 0.3rem 0 0.5rem;
        page-break-after: avoid;
    }

    .article-category {
        color: #666;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.2rem;
    }

    .article-category a {
        color: #666;
        text-decoration: none;
    }

    .article-meta {
        color: #333;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        page-break-after: avoid;
    }

    .article-author a {
        color: #000;
        text-decoration: none;
        font-weight: 700;
    }

    /* Article body */
    .article-body {
        background: white !important;
        padding: 0 !important;
    }

    .article-content {
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 10pt;
        line-height: 1.6;
        color: #000;
    }

    /* Content styling for print */
    .article-content p,
    .article-content ul,
    .article-content ol {
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        page-break-after: avoid;
        margin-top: 2rem;
        color: #000;
    }

    .article-content h2 {
        font-size: 1.5rem;
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.3rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .article-content h4 {
        font-size: 1.1rem;
    }

    /* Links - show URLs after links */
    .article-content a {
        color: #000;
        text-decoration: underline;
    }

    .article-content a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #666;
        word-break: break-all;
    }

    /* Images in content */
    .article-content img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        display: block;
        margin: 1.5rem 0;
    }

    /* Figures and captions */
    figure {
        page-break-inside: avoid;
        margin: 2rem 0;
    }

    figcaption {
        color: #333;
        font-size: 0.85rem;
        font-style: italic;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
    }

    /* Blockquotes */
    .article-content blockquote {
        border-left: 3px solid #000;
        padding-left: 1rem;
        margin: 1.5rem 0;
        color: #333;
        font-style: italic;
        page-break-inside: avoid;
    }

    /* Code blocks */
    .article-content pre,
    .article-content code {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }

    .article-content pre {
        padding: 0.5rem;
        overflow-wrap: break-word;
        page-break-inside: avoid;
    }

    /* Tables */
    .article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        page-break-inside: avoid;
    }

    .article-content th,
    .article-content td {
        border: 1px solid #000;
        padding: 0.5rem;
    }

    .article-content th {
        background: #f0f0f0;
        font-weight: 700;
    }

    /* Footnotes */
    .footnotes {
        border-top: 2px solid #000;
        margin-top: 3rem;
        padding-top: 1rem;
        page-break-before: avoid;
    }

    .footnotes h3 {
        font-size: 1rem;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    /* Horizontal rules */
    hr {
        border-top: 1px solid #000;
        margin: 2rem 0;
    }

    /* Print header with URL and date */
    .article-card::before {
        content: "Lähtekood: " attr(data-url);
        display: block;
        font-size: 0.7rem;
        color: #999;
        margin-bottom: 0.5rem;
        page-break-after: avoid;
    }

    /* Ensure background colors print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Body reset */
    body {
        background: white !important;
        color: #000 !important;
        font-size: 10pt;
    }

    /* Container reset */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* Ensure main content doesn't have extra spacing */
    #main-content {
        padding: 0 !important;
    }

    /* Hide any interactive elements */
    button,
    input,
    select,
    textarea {
        display: none !important;
    }
}