/* Netto calculator — steps 2–4 (step2.png, step3.png, step4.png). */

.nc {
    --nc-navy: var(--theme-palette-color-3, #012955);
    --nc-green: var(--theme-palette-color-2, #20BD80);
    --nc-green-dark: #1aa56f;
    --nc-red: var(--theme-palette-color-1, #BF2B37);
    --nc-text: var(--theme-palette-color-4, #4D6988);
    --nc-muted: var(--theme-palette-color-5, #8094AA);
    --nc-border: var(--theme-palette-color-6, #B3BFCC);
    --nc-grey: var(--theme-palette-color-7, #F2F4F6);
    --nc-serif: var(--wp--preset--font-family--miller-display, Georgia, serif);

    max-width: 1012px;
    margin: 0 auto;
    padding-block: clamp(24px, 5vw, 64px);
    color: var(--nc-text);
}

.nc [hidden] {
    display: none !important;
}

/* ── Shared ─────────────────────────────────────────────────────────────── */

.nc-title {
    margin: 0 0 24px;
    color: var(--nc-navy);
    font-family: var(--nc-serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
}

.nc-card {
    padding: clamp(24px, 4vw, 48px);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(1, 41, 85, 0.08);
}

.nc-section-title,
.nc-card-title {
    margin: 0 0 24px;
    color: var(--nc-navy);
    font-family: var(--nc-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}

.nc-card-title {
    margin-bottom: 0;
}

.nc-subtitle {
    margin: 24px 0 4px;
    color: var(--nc-navy);
    font-size: 15px;
    font-weight: 700;
}

.nc-muted {
    margin: 4px 0 12px;
    color: var(--nc-muted);
    font-size: 14px;
}

.nc-help {
    margin: 16px 0 0;
    color: var(--nc-muted);
    font-size: 14px;
    line-height: 1.8;
}

.nc-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--nc-grey);
}

.nc-message {
    margin: 16px 0 0;
    font-size: 15px;
}

.nc-message:empty {
    display: none;
}

.nc-message--error {
    color: var(--nc-red);
}

.nc-message--success {
    color: var(--nc-green-dark);
}

/* ── Form ───────────────────────────────────────────────────────────────── */

.nc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.nc-field label {
    display: block;
    margin-bottom: 10px;
    color: var(--nc-navy);
    font-size: 15px;
    font-weight: 700;
}

.nc-input {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--nc-border);
    border-radius: 6px;
    background: #fff;
}

.nc-input:focus-within {
    border-color: var(--nc-navy);
    box-shadow: 0 0 0 3px rgba(1, 41, 85, 0.12);
}

.nc .nc-input input {
    flex: 1;
    min-width: 0;
    height: 60px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--nc-navy);
    font-size: 18px;
    outline: none;
}

.nc-input__addon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--nc-grey);
    color: var(--nc-muted);
    font-size: 15px;
    white-space: nowrap;
}

.nc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 32px;
}

.nc .nc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 12px 32px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.nc .nc-btn--primary {
    background: var(--nc-green);
    color: #fff;
}

.nc .nc-btn--primary:hover,
.nc .nc-btn--primary:focus-visible {
    background: var(--nc-green-dark);
    color: #fff;
}

.nc .nc-btn--outline {
    min-height: 50px;
    padding: 10px 22px;
    border-color: var(--nc-navy);
    background: #fff;
    color: var(--nc-navy);
    font-size: 16px;
}

.nc .nc-btn--dark {
    min-height: 56px;
    background: var(--nc-navy);
    color: #fff;
    font-size: 16px;
}

.nc .nc-btn--dark:hover,
.nc .nc-btn--dark:focus-visible {
    background: #001d3d;
    color: #fff;
}

.nc .nc-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ── Code step ──────────────────────────────────────────────────────────── */

.nc-panel--code {
    max-width: 800px;
}

.nc-code-intro {
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.8;
}

.nc-code-intro strong {
    color: var(--nc-navy);
}

.nc-digits {
    display: flex;
    gap: 12px;
}

.nc .nc-digit {
    width: 64px;
    height: 76px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--nc-border);
    border-radius: 6px;
    color: var(--nc-navy);
    font-family: var(--nc-serif);
    font-size: 32px;
    text-align: center;
}

.nc .nc-digit:focus {
    border-color: var(--nc-navy);
    box-shadow: 0 0 0 3px rgba(1, 41, 85, 0.12);
    outline: none;
}

.nc-small {
    margin: 24px 0 0;
    color: var(--nc-muted);
    font-size: 14px;
    line-height: 1.9;
}

.nc-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--nc-navy);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.nc-link:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ── Result ─────────────────────────────────────────────────────────────── */

.nc-result {
    display: grid;
    gap: 20px;
}

.nc-hero {
    padding: 32px 24px;
    border-radius: 12px;
    background: var(--nc-navy);
    color: #fff;
    text-align: center;
}

.nc-hero p {
    color: inherit;
}

.nc-hero__eyebrow,
.nc-erd__eyebrow {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nc-hero .nc-hero__eyebrow {
    color: var(--nc-green);
}

.nc-hero__amount {
    margin: 8px 0 0;
    font-family: var(--nc-serif);
    font-size: clamp(40px, 6vw, 56px);
    line-height: 1.1;
}

.nc-hero .nc-hero__label {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
}

.nc-hero .nc-hero__meta {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.nc-hero__meta > span + span::before {
    content: "·";
    margin: 0 8px;
}

.nc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.nc-rows {
    margin: 0;
}

.nc-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--nc-grey);
    font-size: 16px;
}

.nc-row dt,
.nc-row dd {
    margin: 0;
}

.nc .nc-row dt {
    font-weight: inherit;
}

.nc-row dd {
    color: var(--nc-navy);
    text-align: right;
    white-space: nowrap;
}

.nc-row--bold,
.nc-row--total {
    color: var(--nc-navy);
    font-weight: 700;
}

/* Line above the total ("Netto dividend" row). */
.nc-row:has(+ .nc-row--total) {
    border-bottom-color: #000;
    border-width: 2px;
}

.nc-row--total {
    border-bottom: 0;
    font-size: 17px;
}

.nc-row--sub {
    padding: 8px 0 8px 16px;
    color: var(--nc-muted);
    font-size: 14px;
}

.nc-row--sub dd {
    color: var(--nc-muted);
}

.nc-row--detail {
    padding: 7px 0 7px 32px;
    color: var(--nc-muted);
    font-size: 14px;
}

.nc-row--detail dd {
    color: var(--nc-muted);
}

.nc-summary .nc-collapse {
    margin-top: 0;
}

/* Info icon with tooltip (Volledige opbouw). */
.nc-info {
    position: relative;
    display: inline-block;
    vertical-align: -2px;
}

.nc .nc-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0 0 0 4px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: none;
    color: var(--nc-muted);
    font-family: inherit;
    vertical-align: top;
    cursor: help;
}

.nc .nc-info__icon::before {
    content: "i";
    font: italic 700 10px/1 Georgia, serif;
}

.nc-info__tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 10;
    width: max-content;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--nc-navy);
    box-shadow: 0 6px 20px rgba(1, 41, 85, 0.2);
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Invisible bridge over the gap, so the mouse can move from the icon into the tip to click a link. */
.nc-info__tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.nc-info:hover .nc-info__tip,
.nc-info:focus-within .nc-info__tip {
    opacity: 1;
    visibility: visible;
}

.nc-info__tip a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nc-info__tip a:hover,
.nc-info__tip a:focus-visible {
    color: var(--nc-green);
}

.nc-toggle {
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nc-navy);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.nc-toggle--flush {
    margin-top: 0;
    text-decoration: none;
}

.nc-toggle::before {
    content: "+";
    margin-right: 8px;
    color: var(--nc-green);
}

.nc-toggle[aria-expanded="true"]::before {
    content: "−";
}

.nc-collapse {
    margin-top: 16px;
}

.nc-erd {
    background: var(--nc-green);
    box-shadow: none;
    color: #fff;
}

.nc-erd p {
    color: #fff;
}

.nc-erd__amount {
    margin: 16px 0 0;
    font-family: var(--nc-serif);
    font-size: 40px;
    line-height: 1.1;
}

.nc-erd__label {
    margin: 4px 0 0;
    font-size: 15px;
}

.nc-erd__text {
    margin: 16px 0 24px;
    font-size: 14px;
    line-height: 1.7;
}

.nc-erd .nc-row {
    border-color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.nc-erd .nc-row:last-child {
    border-bottom: 0;
}

.nc-erd .nc-row dd {
    color: #fff;
    font-weight: 700;
}

.nc-compare {
    padding-block: 24px;
}

.nc-table-wrap {
    overflow-x: auto;
}

.nc .nc-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-size: 16px;
}

.nc .nc-table th,
.nc .nc-table td {
    padding: 12px 8px;
    border: 0;
    border-bottom: 1px solid var(--nc-grey);
    text-align: right;
    white-space: nowrap;
}

.nc .nc-table th:first-child {
    padding-left: 0;
    text-align: left;
    white-space: normal;
}

.nc .nc-table thead th {
    border-bottom: 2px solid var(--nc-border);
    color: var(--nc-navy);
    font-size: 14px;
    font-weight: 700;
}

.nc .nc-table__row--last th,
.nc .nc-table__row--last td {
    border-bottom: 0;
}

.nc-note {
    margin: 16px 0 0;
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.8;
}

.nc .nc-table tbody th {
    font-weight: 400;
}

.nc .nc-table__row--sub th,
.nc .nc-table__row--sub td {
    padding-top: 6px;
    padding-bottom: 6px;
    color: var(--nc-muted);
    font-size: 14px;
}

.nc .nc-table__row--sub th:first-child {
    padding-left: 16px;
}

.nc .nc-table tr.nc-table__row--bold th,
.nc .nc-table tr.nc-table__row--bold td {
    color: var(--nc-navy);
    font-weight: 700;
}

.nc-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.nc-cta__text p {
    margin: 4px 0 0;
    font-size: 14px;
}

.nc-cta--grey {
    background: var(--nc-grey);
    box-shadow: none;
}

.nc-disclaimer p {
    margin: 0 0 16px;
    color: var(--nc-muted);
    font-size: 12px;
    line-height: 1.8;
}

/* Tighter spacing in the PDF so the whole summary card fits on the first page. */
.nc-result.is-pdf {
    padding: 0 24px 24px;
    background: #fff;
}

.nc-result.is-pdf .nc-hero {
    padding: 24px;
}

.nc-result.is-pdf .nc-card {
    padding: 28px;
}

.nc-result.is-pdf .nc-row {
    padding-top: 10px;
    padding-bottom: 10px;
}

.nc-result.is-pdf .nc-row--sub {
    padding-top: 6px;
    padding-bottom: 6px;
}

.nc-result.is-pdf .nc-row--detail {
    padding-top: 5px;
    padding-bottom: 5px;
}

.nc-pdf-header img {
    display: block;
    margin: 0 auto 12px;
    width: auto;
    height: 48px;
}

/* ── Small screens ──────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .nc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 689px) {
    .nc-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    /* Tooltips span the row instead of centring on the icon, so they never leave the screen. */
    .nc-row--detail {
        position: relative;
    }

    .nc-row--detail .nc-info {
        position: static;
    }

    .nc-row--detail .nc-info__tip {
        right: 0;
        left: 0;
        width: auto;
        max-width: none;
        transform: none;
    }

    .nc-row--detail .nc-info__tip::after {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .nc-digits {
        gap: 8px;
    }

    .nc .nc-digit {
        width: calc((100% - 40px) / 6);
        height: 60px;
        font-size: 26px;
    }
}
