/* OvertimePayCalc.com styles — overtime-fix-0502 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
    color: #1a1a1a;
    overflow-x: hidden;
}

.wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

/* Site header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e3dc;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
}

.brand h1 {
    margin: 0;
    font-size: 1.4rem;
}
.brand p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.header-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.header-nav a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
}
.header-nav a.active,
.header-nav a:hover {
    color: #0066cc;
    font-weight: 600;
}

/* Hero / calculator */
.hero {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e8e3dc;
    margin-bottom: 16px;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: 1.15rem;
}

.form-card {
    margin-bottom: 16px;
}

.field {
    margin-bottom: 10px;
}

label {
    font-weight: 600;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: #0066cc;
    color: #fff;
    width: 100%;
}

.btn:hover {
    background: #0052a3;
}

/* Results */
.result-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-row.total {
    border-top: 2px solid #ddd;
    border-bottom: none;
    font-weight: 700;
}

.result-row.net {
    border-top: none;
    font-weight: 700;
    color: #007a3d;
}

.result-label {
    color: #555;
    font-size: 0.95rem;
}

.result-value {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

.result-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #888;
}

/* CTA link for sub-pages */
.cta-link {
    margin: 16px 0 0;
    font-size: 0.95rem;
}
.cta-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}
.cta-link a:hover {
    text-decoration: underline;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
}

/* Section cards */
.section-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e8e3dc;
    line-height: 1.7;
}

.section-card h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.section-card h3 {
    margin: 18px 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.section-card p {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.95rem;
}

.section-card ul,
.section-card ol {
    margin: 0 0 12px;
    padding-left: 22px;
    color: #555;
    font-size: 0.95rem;
}

.section-card li {
    margin-bottom: 6px;
}

.section-card a {
    color: #0066cc;
    text-decoration: none;
}

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

/* Example tables */
.example-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 0.9rem;
}

.example-table th,
.example-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.example-table th {
    font-weight: 600;
    background: #f8f8f8;
}

/* Ad slots — collapsed by default */
.adsense-unit {
    min-height: 0;
    height: 0;
    overflow: hidden;
}
.adsense-unit.active {
    min-height: 250px;
    height: auto;
    overflow: visible;
}

/* Page-copy wrapper for support pages */
.page-copy {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e8e3dc;
    line-height: 1.7;
}

.page-copy h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
}

.page-copy h3 {
    margin: 18px 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.page-copy p {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.95rem;
}

.page-copy ul,
.page-copy ol {
    margin: 0 0 12px;
    padding-left: 22px;
    color: #555;
    font-size: 0.95rem;
}

.page-copy li {
    margin-bottom: 6px;
}

.page-copy a {
    color: #0066cc;
    text-decoration: none;
}

.page-copy a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #e8e3dc;
    margin-top: 32px;
    padding: 24px 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-grid h2 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.footer-nav-links,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-links li,
.footer-links li {
    margin-bottom: 4px;
}

.footer-nav-links a,
.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-nav-links a:hover,
.footer-links a:hover {
    color: #0066cc;
}

.footer-meta {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin: 0;
}

.footer-empty {
    color: #999;
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand h1 {
        font-size: 1.1rem;
    }

    .header-nav {
        font-size: 0.85rem;
        gap: 10px;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-card,
    .page-copy,
    .hero {
        padding: 16px 18px;
    }
}
