/* Bonac Tax Reduction Service - Clean CSS */

:root {
    --color-primary: #53152a;
    --color-text: #333;
    --color-link: #0066cc;
    --color-border: #ddd;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-primary);
    padding: 20px;
}

/* Header */
.site-header {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.site-branding {
    margin-bottom: 1.5rem;
}

.site-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-description {
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 2px solid var(--color-border);
    padding-top: 1rem;
}

.main-navigation a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.main-navigation a:hover {
    text-decoration: underline;
}

.main-navigation li.active a {
    font-weight: bold;
    color: var(--color-link);
}

/* Main Content */
.site-content {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow-x: hidden;
}

.site-content h1 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.site-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.site-content p {
    margin-bottom: 1rem;
}

.site-content a {
    color: var(--color-link);
}

.site-content a:hover {
    text-decoration: none;
}

/* Entry Content (WordPress content) */
.entry-content p {
    margin-bottom: 1rem;
}

/* Tables */
table {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table td,
table th {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
}

table th,
table tr:first-child td {
    background-color: #f5f5f5;
    font-weight: bold;
    color: var(--color-primary);
}

/* Zebra striping for table rows */
table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Only apply hover effects on devices with hover capability (not touch screens) */
@media (hover: hover) and (pointer: fine) {
    table tr:hover {
        background-color: #f0f0f0;
    }
}

/* Right-align dollar amounts - only in multi-column tables */
table td[style*="text-align: right"] {
    text-align: right;
}

/* Right-align last column only if table has multiple columns */
table tr td:last-child:not(:first-child) {
    text-align: right;
}

/* Center-align percentages */
table td[align="center"] {
    text-align: center;
}

/* Footer */
.site-footer {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-header,
    .site-content,
    .site-footer {
        padding: 1rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-description {
        font-size: 1rem;
    }

    /* Make tables scrollable on mobile */
    table {
        font-size: 0.85rem;
        margin: 1rem 0;
    }

    table td,
    table th {
        padding: 0.5rem 0.25rem;
    }
}
