/* Withholding tax calculator page (/withholding-tax-calculator). Loaded after base.css and homepage.css,
   which give it the site menu, footer and Open Sans. Mock-up: https://claude.ai/artifact/MeimXfJKbg9TLZhVyM2Jiq */

.wht-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    color: var(--black);
}

.wht-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wht-crumbs {
    margin: 0;
    font-size: 14px;
    color: #5a5960;
}
.wht-crumbs a {
    color: var(--primarycolor);
    text-decoration: none;
}
.wht-crumbs a:hover {
    text-decoration: underline;
}
.wht-title {
    margin: 0;
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
}
.wht-title span {
    color: var(--primarycolor);
}
.wht-lead {
    margin: 0;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--textcolor);
}
.wht-source {
    margin: 0;
    font-size: 13.5px;
    color: #5a5960;
}

.wht-h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}
.wht-h2-big {
    font-size: 26px;
}
.wht-text {
    margin: 0;
    max-width: 820px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--textcolor);
}

/* Calculator */
.wht-calc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #E4DAEC;
    border-radius: 16px;
    overflow: hidden;
}
.wht-calc-form {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.wht-field {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.wht-label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}
.wht-input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--black);
    background: var(--white);
    border: 1px solid #cfc6d8;
    border-radius: 8px;
}
.wht-input:focus-visible {
    outline: 2px solid var(--primarycolor);
    outline-offset: 1px;
}
.wht-amount {
    font-size: 17px;
    font-weight: 600;
}
.wht-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #cfc6d8;
    border-radius: 8px;
    overflow: hidden;
}
.wht-segment label {
    position: relative;
    cursor: pointer;
}
.wht-segment input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}
.wht-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    background: var(--white);
    color: var(--black);
}
.wht-segment label + label span {
    border-left: 1px solid #cfc6d8;
}
.wht-segment input:checked + span {
    background: var(--primarycolor);
    color: var(--white);
}
.wht-segment input:focus-visible + span {
    outline: 2px solid var(--primarycolor);
    outline-offset: -4px;
    box-shadow: inset 0 0 0 4px var(--white);
}
.wht-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 15px;
    cursor: pointer;
}
.wht-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--primarycolor);
}

.wht-result {
    padding: 32px;
    background: #F7F2FB;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.wht-result-label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primarycolor);
}
.wht-result-main {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}
.wht-result-amount {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
}
.wht-result-rate {
    font-size: 16px;
    color: var(--textcolor);
}
.wht-result-explain {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--textcolor);
}
.wht-result-note {
    margin: 0;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--textcolor);
    background: var(--white);
    border: 1px solid #E4DAEC;
    border-radius: 8px;
}
.wht-result-note[hidden],
.wht-breakdown div[hidden] {
    display: none;
}
.wht-breakdown {
    margin: 0;
    background: var(--white);
    border: 1px solid #E4DAEC;
    border-radius: 10px;
}
.wht-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-size: 15px;
}
.wht-breakdown div + div {
    border-top: 1px solid #f0ebf4;
}
.wht-breakdown dt,
.wht-breakdown dd {
    margin: 0;
}
.wht-breakdown dd {
    text-align: right;
    white-space: nowrap;
}
.wht-breakdown .wht-breakdown-pay {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    border-top-color: #E4DAEC;
}
.wht-result-due {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #5a5960;
}

/* Link through to the checker */
.wht-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: var(--primarycolor);
    color: var(--white);
    border-radius: 14px;
}
.wht-cta > div {
    max-width: 700px;
}
.wht-cta-title {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
}
.wht-cta-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}
.wht-cta-button {
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primarycolor);
    background: var(--white);
    border-radius: 6px;
    text-decoration: none;
}
.wht-cta-button:hover {
    background: #F6F0FA;
}

/* Rate table */
.wht-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wht-table-wrap {
    overflow-x: auto;
    border: 1px solid #E4DAEC;
    border-radius: 12px;
}
.wht-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
}
.wht-table thead tr {
    background: #F7F2FB;
}
.wht-table th,
.wht-table td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: top;
}
.wht-table thead th {
    font-weight: 700;
}
.wht-table thead th:nth-child(2),
.wht-table thead th:nth-child(3) {
    width: 130px;
}
.wht-table tbody tr {
    border-top: 1px solid #f0ebf4;
}
.wht-table tbody th {
    font-weight: 600;
}
.wht-table-note {
    font-size: 14px;
    color: #5a5960;
}
/* On phones the note moves under the payment name (see the media query), so the table fits the screen. */
.wht-table-subnote {
    display: none;
}
.wht-footnote {
    margin: 0;
    font-size: 13.5px;
    color: #5a5960;
}

/* Worked example + withholding VAT */
.wht-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}
.wht-steps {
    margin: 0;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--textcolor);
}
.wht-whvat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #FFF8EC;
    border: 1px solid #F3DDB3;
    border-radius: 12px;
}
.wht-whvat .wht-h2 {
    font-size: 19px;
}

/* FAQ */
.wht-faq {
    border: 1px solid #E4DAEC;
    border-radius: 12px;
    overflow: hidden;
}
.wht-faq details + details {
    border-top: 1px solid #ebe8f0;
}
.wht-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.wht-faq summary::-webkit-details-marker {
    display: none;
}
.wht-faq summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid var(--primarycolor);
    border-bottom: 2px solid var(--primarycolor);
    transform: rotate(45deg);
}
.wht-faq details[open] summary {
    color: var(--primarycolor);
}
.wht-faq details[open] summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}
.wht-faq summary:hover {
    background: #fbf8fd;
}
.wht-faq summary:focus-visible {
    outline: 2px solid var(--primarycolor);
    outline-offset: -2px;
}
.wht-faq p {
    margin: 0;
    padding: 0 22px 18px;
    max-width: 820px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #4a4b52;
}

@media only screen and (max-width: 860px) {
    .wht-page {
        padding: 8px 16px 16px;
        gap: 32px;
    }
    .wht-title {
        font-size: 26px;
        line-height: 1.3;
    }
    .wht-lead {
        font-size: 15px;
    }
    .wht-calc,
    .wht-two {
        grid-template-columns: minmax(0, 1fr);
    }
    .wht-calc-form,
    .wht-result {
        padding: 20px 18px;
    }
    .wht-result-amount {
        font-size: 34px;
    }
    .wht-cta {
        padding: 20px;
    }
    .wht-h2-big {
        font-size: 21px;
    }
    .wht-table {
        min-width: 0;
        font-size: 14px;
    }
    .wht-table th,
    .wht-table td {
        padding: 11px 12px;
    }
    .wht-table thead th:nth-child(2),
    .wht-table thead th:nth-child(3) {
        width: auto;
    }
    .wht-table-notecol,
    .wht-table-note {
        display: none;
    }
    .wht-table-subnote {
        display: block;
        margin-top: 4px;
        font-size: 12.5px;
        font-weight: 400;
        line-height: 1.45;
        color: #5a5960;
    }
}

.wht-related {
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--textcolor);
}
.wht-related a {
    color: var(--primarycolor);
    font-weight: 600;
}

.wht-hint {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #5a5960;
}
.wht-hint[hidden] {
    display: none;
}
