/* ============================================================
   Taxpert page shell: header, wider layout, footer.
   Loaded after the site stylesheets so these rules win.
   ============================================================ */

body {
    margin: 0;
    background-color: #f5f5f5;
    font-family: var(--body-font);
}

/* ---- Header ---- */
.tp-header {
    background-color: var(--efile-blue);
    padding: 18px 0 58px;
}

.tp-header .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 48px;
    flex-wrap: wrap;
}

.tp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 34px;
    line-height: 1;
    letter-spacing: .5px;
}

.tp-brand .tp-logo {
    display: block;
    height: 40px;
    width: auto;
}

@media (max-width: 540px) {
    .tp-brand .tp-logo {
        height: 32px;
    }
}

/* ---- Site menu: links to the separate tax-year pages; the current page is underlined ---- */
.tp-nav {
    display: flex;
    align-items: center;
    gap: 6px 32px;
    flex-wrap: wrap;
}

.tp-nav-link {
    position: relative;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .2px;
    padding: 8px 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

/* underline drawn under the link: full width on the current page, grows in on hover */
.tp-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
}

.tp-nav-link:hover,
.tp-nav-link:focus {
    color: var(--white);
    text-decoration: none;
}

.tp-nav-link:hover::after,
.tp-nav-link.active::after {
    transform: scaleX(1);
}

.tp-nav-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.tp-nav-link.active {
    color: var(--white);
}

@media (max-width: 540px) {
    .tp-nav {
        gap: 4px 24px;
    }

    .tp-nav-link {
        font-size: 15px;
    }
}

/* ---- Wider layout so the 9-step tool never scrolls or wraps ---- */
@media (min-width: 1200px) {
    .container,
    .navbar .container {
        max-width: 1600px;
    }
}

@media (min-width: 1500px) {
    .container,
    .navbar .container {
        max-width: 1600px;
    }
}

.article-content.raised {
    padding: 0 20px !important;
}

.content__container {
    margin-top: -40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

article#page-content h1 {
    margin-top: 10px;
}

.tp-intro {
    color: #555;
    margin-bottom: 1rem;
}

/* ---- Footer ---- */
.tp-footer {
    text-align: center;
    color: #777;
    font-size: 14px;
    padding: 28px 15px 36px;
}

@media (max-width: 991px) {
    .article-content.raised {
        padding: 0 8px !important;
    }
}
