/* Page taxben.oecd.org (November 2026): header, sections and footer in the layout of the oecd.org
   page of the calculator (colours, fonts and sizes taken from the oecd.org style sheet). They are
   shown only when the calculator is opened on its own page (js/site-page.js); inside the frame of
   the oecd.org page they stay hidden. The calculator itself keeps its own style. */

/* Noto Sans and Noto Sans Display, the fonts of oecd.org (SIL Open Font License, css/fonts) */
@font-face {
    font-family: "TaxBEN Noto Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/noto-sans-latin-400-normal.woff2) format("woff2");
}

@font-face {
    font-family: "TaxBEN Noto Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/noto-sans-latin-700-normal.woff2) format("woff2");
}

@font-face {
    font-family: "TaxBEN Noto Sans Display";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62.5% 100%;
    font-display: swap;
    src: url(fonts/noto-sans-display-latin-wdth-normal.woff2) format("woff2");
}

.taxben-site {
    display: none;
}

.taxben-standalone .taxben-site {
    display: block;
}

/* The heading of the page is the visible title of the header */
.taxben-standalone #root > h1.taxben-sr-only {
    display: none;
}

.taxben-standalone body {
    margin: 0;
    background-color: #fff;
}

.taxben-standalone #root {
    margin-top: 12px;
    margin-bottom: 24px;
}

.taxben-site {
    font-family: "TaxBEN Noto Sans", "Noto Sans", Arial, sans-serif;
    color: #586179;
    font-size: 16px;
    line-height: 1.5;
}

.taxben-site-inner {
    box-sizing: border-box;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
}

.taxben-site h1,
.taxben-site h2 {
    font-family: "TaxBEN Noto Sans Display", "Noto Sans Display", "Arial Narrow", Arial, sans-serif;
    font-stretch: 80%;
    color: #101d40;
}

.taxben-site a {
    color: #156df9;
    text-underline-offset: 0.15em;
}

.taxben-site a:focus-visible {
    outline: 2px solid #45deff;
    outline-offset: 2px;
}

/* ---- Header: one dark blue bar with the logo, the title and the link to "Dashboards & tools".
   The bar is low, so that the whole calculator fits in the screen under it (js/site-page.js). ---- */
#taxben-site-header {
    background-color: #101d40;
    color: #fff;
}

.taxben-site-bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
}

.taxben-site-logo {
    flex: 0 0 auto;
}

.taxben-site-logo img {
    display: block;
    width: 112px;
    height: auto;
}

#taxben-site-header h1.taxben-site-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0 0 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
    letter-spacing: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.taxben-site-breadcrumb {
    flex: 0 0 auto;
    margin-left: 24px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.taxben-site-breadcrumb::before {
    content: "\2039";
    display: inline-block;
    margin-right: 8px;
    font-size: 20px;
    line-height: 1;
}

.taxben-site-breadcrumb:hover {
    text-decoration: underline;
}

/* Introduction, at the left of the calculator. It is shown only when the space at the left of
   the calculator is wide enough (js/site-page.js adds the class taxben-has-side and gives the
   width of that space in --taxben-side); otherwise it is left out. */
.taxben-standalone .taxben-site-side,
.taxben-standalone .taxben-site-links {
    display: none;
}

.taxben-standalone.taxben-has-side .taxben-site-side,
.taxben-standalone.taxben-has-side .taxben-site-links {
    display: block;
    position: absolute;
    top: 68px; /* the header (56 pixels) and the space above the calculator */
    box-sizing: border-box;
    width: calc(var(--taxben-side, 300px) - 64px);
    max-width: 380px;
}

.taxben-standalone.taxben-has-side .taxben-site-side {
    left: 32px;
}

/* Quick links, at the right of the calculator */
.taxben-standalone.taxben-has-side .taxben-site-links {
    right: 32px;
    font-size: clamp(14px, calc(var(--taxben-side, 300px) / 26), 17px);
    line-height: 1.4;
}

.taxben-site-links h2 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 800;
    line-height: 1.2;
}

.taxben-site-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.taxben-site-links li {
    padding: 7px 0 7px 18px;
    border-top: 1px solid #dee3e9;
    color: #586179;
    position: relative;
}

.taxben-site-links li::before {
    content: "\203A";
    position: absolute;
    left: 2px;
    top: 5px;
    color: #156df9;
    font-weight: 700;
}

.taxben-site-links a {
    font-weight: 700;
    text-decoration: none;
}

.taxben-site-links a:hover {
    text-decoration: underline;
}

.taxben-site-intro {
    margin: 0;
    padding-left: 16px;
    border-left: 4px solid #156df9;
    color: #101d40;
    font-size: clamp(15px, calc(var(--taxben-side, 300px) / 24), 19px);
    line-height: 1.55;
}

/* The output type step on computers: the grey panel fills the whole step, as the other steps
   fill theirs, instead of ending above an empty band */
@media (min-width: 816px) {
    .wizard-main .step-1 {
        box-sizing: border-box;
        height: calc(100% - 22px); /* the step has a margin of 10 pixels above and below */
    }

    .wizard-main .step-1 .taxb-flex-container {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .wizard-main .step-1 .taxb-flex-row:first-child {
        flex: 1 1 auto;
    }
}

/* ---- Sections under the calculator ---- */
.taxben-site-section {
    padding: 48px 0;
    border-top: 1px solid #dee3e9;
}

.taxben-site-two-columns {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: start;
}

.taxben-site-section-alt .taxben-site-two-columns {
    grid-template-columns: 7fr 5fr;
}

.taxben-site-section-alt .taxben-site-image {
    order: 2;
}

.taxben-site-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f4f8;
}

.taxben-site-section h2 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.29;
    letter-spacing: -0.84px;
}

.taxben-site-section p {
    margin: 0 0 14px 0;
}

.taxben-site-section ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.taxben-site-section li {
    margin-bottom: 6px;
}

/* "Access the indicators", "Email us" */
.taxben-site a.taxben-site-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 4px;
    background-color: #156df9;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.taxben-site a.taxben-site-button:hover {
    background-color: #0660ef;
}

/* "Access the descriptions" with a round arrow */
.taxben-site a.taxben-site-arrow-link {
    color: #101d40;
    font-weight: 700;
    text-decoration: none;
}

.taxben-site a.taxben-site-arrow-link::after {
    content: "\203A";
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-left: 12px;
    border-radius: 50%;
    background-color: #156df9;
    color: #fff;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.taxben-site a.taxben-site-arrow-link:hover {
    text-decoration: underline;
}

/* Contact box, light blue */
.taxben-site-contact {
    padding: 32px 36px;
    border-radius: 4px;
    background-color: #e0f2ff;
}

.taxben-site-contact h2 {
    font-size: 22px !important;
}

.taxben-site-contact p:last-child {
    margin-bottom: 0;
}

/* ---- Footer ---- */
#taxben-site-footer {
    padding: 32px 0;
    background-color: #101d40;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

#taxben-site-footer p {
    margin: 12px 0 0 0;
}

#taxben-site-footer a {
    color: #fff;
}

/* ---- Tablets and small laptops ---- */
@media (max-width: 1100px) {
    .taxben-site-section h2 {
        font-size: 24px;
    }
}

/* ---- Phones: the bar is lower still and the title is smaller; its size follows the width of the
   screen, so that it stays on one line. The link to "Dashboards & tools" is left out. ---- */
@media (max-width: 815px) {
    .taxben-site-inner {
        padding: 0 12px;
    }

    .taxben-site-bar {
        height: auto;
        padding: 0;
    }

    .taxben-site-logo {
        padding: 9px 9px 9px 12px;
    }

    .taxben-site-logo img {
        width: 60px;
    }

    #taxben-site-header h1.taxben-site-title {
        margin: 0;
        padding: 6px 12px 6px 9px;
        font-size: 13px;
        font-size: min(20px, calc((100vw - 104px) / 21.2));
        line-height: 1.3;
    }

    .taxben-site-breadcrumb {
        display: none;
    }

    /* The calculator takes the full width of the screen, like the header, with a thin white
       line between the two */
    .taxben-standalone #root {
        margin-top: 3px;
        padding: 0;
    }

    /* Texts and buttons of the results keep a small margin from the edge of the screen; the chart
       keeps the full width */
    .taxben-standalone .taxben-result > *:not(.taxben-chart) {
        box-sizing: border-box;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .taxben-site-section {
        padding: 32px 0;
    }

    .taxben-site-two-columns,
    .taxben-site-section-alt .taxben-site-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .taxben-site-section-alt .taxben-site-image {
        order: 0;
    }

    .taxben-site-image img {
        aspect-ratio: 16 / 9;
    }

    .taxben-site-contact {
        padding: 24px 20px;
    }
}

/* ---- Very narrow phones (less than 360 pixels): the title goes on two lines rather than
   becoming too small ---- */
@media (max-width: 359px) {
    #taxben-site-header h1.taxben-site-title {
        font-size: 13px;
        white-space: normal;
    }
}
