/* take-home.css
 * Task 3: minimal, self-contained styling for Render\TakeHomeView's
 * take-home page (summary table, breakdown, FAQ, siblings). No @import /
 * external fonts / CDN -- safe under a strict CSP. Not enqueued here --
 * wiring wp_enqueue_style() into the shortcode is a later task, same as
 * calculator.css and compare.css.
 */

.pcg-take-home {
    max-width: 900px;
    margin: 0 auto;
}

.pcg-th-intro,
.pcg-th-breakdown {
    font-size: 1rem;
    line-height: 1.6;
}

.pcg-th {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pcg-th th,
.pcg-th td {
    padding: 0.6rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.pcg-th td {
    text-align: right;
}

.pcg-th tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.pcg-th-total {
    font-weight: bold;
    background: #e6f4ea !important;
}

.pcg-th-total th,
.pcg-th-total td {
    color: #1b5e20;
}

.pcg-th-faq h3 {
    margin-bottom: 0.25rem;
}

.pcg-th-faq p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.pcg-th-siblings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pcg-th-siblings li {
    padding: 0.25rem 0;
}

/* Small screens: allow the table to scroll horizontally rather than
 * squeezing columns unreadably narrow. */
@media (max-width: 600px) {
    .pcg-th {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
