:root {
    --legacy-petrol: #003244;
    --legacy-petrol-deep: #002735;
    --legacy-petrol-mid: #0b4253;
    --legacy-blue: #dceaf4;
    --legacy-lime: #baff83;
    --legacy-soft: #f5f6f4;
    --legacy-white: #fff;
    --legacy-ink: #101516;
    --legacy-muted: #687477;
    --legacy-line: rgba(0, 50, 68, 0.14);
    --legacy-shell: 1248px;
}

html {
    scroll-behavior: smooth;
}

body.niblah-legacy-restyled {
    background: var(--legacy-white);
    color: var(--legacy-ink);
    font-family: Inter, Arial, sans-serif;
    letter-spacing: 0;
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
}

body.niblah-legacy-restyled *,
body.niblah-legacy-restyled *::before,
body.niblah-legacy-restyled *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

body.niblah-legacy-restyled > header {
    background: var(--legacy-petrol-deep) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    color: #fff;
    min-height: 84px;
    position: relative !important;
    top: auto;
    z-index: 1000;
}

.legacy-site-header .legacy-header-shell {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: auto 1fr auto;
    margin-inline: auto;
    max-width: var(--legacy-shell);
    min-height: 84px;
    border-inline: 1px solid rgba(255, 255, 255, 0.12);
    padding-inline: 24px;
}

.legacy-site-header .legacy-primary-nav {
    align-items: center;
    display: flex;
    gap: 5px;
}

.legacy-site-header .legacy-primary-nav > a,
.legacy-site-header summary,
.legacy-site-header .legacy-header-contact {
    background: transparent !important;
    color: #b7c9ce !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    list-style: none;
    min-height: auto;
    padding: 10px 12px;
    text-decoration: none;
}

.legacy-site-header .legacy-primary-nav > a:hover,
.legacy-site-header summary:hover,
.legacy-site-header .legacy-header-contact:hover {
    color: #fff !important;
}

.legacy-site-header summary::-webkit-details-marker {
    display: none;
}

.legacy-site-header details {
    position: relative;
}

.legacy-site-header .legacy-primary-nav summary::after {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: "";
    display: inline-block;
    height: 6px;
    margin-left: 8px;
    transform: rotate(45deg) translateY(-2px);
    width: 6px;
}

.legacy-site-header .legacy-service-menu {
    background: #fff;
    border: 1px solid var(--legacy-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 24, 32, 0.18);
    display: grid;
    gap: 2px;
    left: 0;
    min-width: 230px;
    padding: 8px;
    position: absolute;
    top: calc(100% + 10px);
}

.legacy-site-header .legacy-service-menu a {
    border-radius: 5px;
    color: var(--legacy-petrol) !important;
    font-size: 13px;
    padding: 10px;
    text-decoration: none;
}

.legacy-site-header .legacy-service-menu a:hover {
    background: var(--legacy-blue) !important;
}

.legacy-site-header .legacy-header-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.legacy-site-header .legacy-header-cta {
    background: #fff !important;
    border: 0 !important;
    border-radius: 5px;
    color: var(--legacy-petrol) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    text-decoration: none;
}

.legacy-site-header .legacy-mobile-nav {
    display: none;
}

.legacy-brand-logo {
    display: block;
    filter: brightness(0) invert(1);
    height: auto;
    width: 138px;
}

.legacy-tool-hero {
    background: var(--legacy-petrol);
    color: #fff;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

.legacy-tool-hero-shell {
    align-items: center;
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-inline: auto;
    max-width: var(--legacy-shell);
    min-height: 500px;
    padding: 72px 24px 88px;
    position: relative;
    text-align: center;
    z-index: 2;
}

.legacy-tool-label {
    background: #0d647d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #d9f4ff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 27px;
    padding: 7px 10px;
}

.legacy-tool-hero h1 {
    color: #fff !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 60px !important;
    font-weight: 430 !important;
    line-height: 1.04 !important;
    margin: 0 0 22px !important;
    max-width: 920px;
    text-wrap: balance;
}

.legacy-tool-hero p {
    color: #abc0c6 !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    max-width: 720px;
    text-wrap: pretty;
}

.legacy-tool-hero-geometry {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.legacy-tool-hero-geometry span {
    border: 1px solid rgba(255, 255, 255, 0.035);
    position: absolute;
}

.legacy-tool-hero-geometry span:nth-child(1) {
    border-radius: 0 0 100% 0;
    height: 330px;
    left: 5%;
    top: -160px;
    width: 330px;
}

.legacy-tool-hero-geometry span:nth-child(2) {
    height: 190px;
    right: 12%;
    top: 75px;
    width: 280px;
}

.legacy-tool-hero-geometry span:nth-child(3) {
    border-radius: 100% 0 0 0;
    bottom: -170px;
    height: 330px;
    right: 3%;
    width: 330px;
}

.legacy-tool-root {
    background: var(--legacy-white) !important;
    color: var(--legacy-ink) !important;
    font-family: Inter, Arial, sans-serif !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    width: 100% !important;
}

.legacy-tool-root:not(main) {
    margin-inline: auto !important;
    max-width: var(--legacy-shell) !important;
    padding: 92px 24px 120px !important;
}

.legacy-tool-root:is(main) {
    padding: 0 !important;
}

.legacy-tool-root:is(main) > * {
    margin: 0 !important;
    max-width: none !important;
    padding-block: 88px !important;
    padding-inline: max(24px, calc((100% - var(--legacy-shell)) / 2)) !important;
    width: 100% !important;
}

.legacy-tool-root:is(main) > *:nth-child(even) {
    background: var(--legacy-soft) !important;
}

.legacy-tool-original-heading {
    display: none !important;
}

.legacy-tool-source-intro {
    background: var(--legacy-blue) !important;
}

.legacy-tool-root h2,
.legacy-tool-root h3,
.legacy-tool-root h4 {
    color: var(--legacy-petrol) !important;
    font-family: Inter, Arial, sans-serif !important;
    font-weight: 440 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

.legacy-tool-root h2 {
    font-size: 42px !important;
    line-height: 1.08 !important;
}

.legacy-tool-root h3 {
    font-size: 26px !important;
    line-height: 1.15 !important;
}

.legacy-tool-root p,
.legacy-tool-root li {
    color: var(--legacy-muted);
    line-height: 1.65;
    text-wrap: pretty;
}

.legacy-tool-root strong {
    color: var(--legacy-ink);
}

.legacy-tool-root img {
    border-radius: 8px;
}

.legacy-tool-root iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.legacy-tool-root [class*="rounded-md"],
.legacy-tool-root [class*="rounded-lg"],
.legacy-tool-root [class*="rounded-xl"],
.legacy-tool-root [class*="rounded-2xl"],
.legacy-tool-root [class*="rounded-3xl"] {
    border-radius: 8px !important;
}

.legacy-tool-root [class*="shadow"],
.legacy-tool-root [class*="drop-shadow"] {
    box-shadow: none !important;
    filter: none !important;
}

.legacy-tool-root [class*="border-"] {
    border-color: var(--legacy-line) !important;
}

.legacy-tool-root [class*="bg-gradient"] {
    background-color: var(--legacy-soft) !important;
    background-image: none !important;
}

.legacy-tool-root [class*="bg-pink"],
.legacy-tool-root [class*="bg-purple"],
.legacy-tool-root [class*="bg-fuchsia"],
.legacy-tool-root [class*="bg-[#F7D8FA]"],
.legacy-tool-root [class*="bg-[#D9EDFF]"] {
    background: var(--legacy-blue) !important;
}

.legacy-tool-root [class*="text-pink"],
.legacy-tool-root [class*="text-purple"],
.legacy-tool-root [class*="text-fuchsia"] {
    color: var(--legacy-petrol) !important;
}

.legacy-tool-root input,
.legacy-tool-root textarea,
.legacy-tool-root select,
.legacy-tool-root [contenteditable="true"] {
    background: #fff !important;
    border: 1px solid #cbd6d6 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    color: var(--legacy-ink) !important;
}

.legacy-tool-root input:focus,
.legacy-tool-root textarea:focus,
.legacy-tool-root select:focus,
.legacy-tool-root [contenteditable="true"]:focus {
    border-color: var(--legacy-petrol-mid) !important;
    box-shadow: 0 0 0 3px rgba(11, 66, 83, 0.12) !important;
    outline: 0;
}

.legacy-tool-root button,
.legacy-tool-root a[class*="bg-"] {
    border-radius: 5px !important;
    box-shadow: none !important;
    font-weight: 650;
    letter-spacing: 0;
}

.legacy-tool-root button[class*="bg-blue"],
.legacy-tool-root button[class*="bg-[#1795FF]"],
.legacy-tool-root a[class*="bg-blue"],
.legacy-tool-root a[class*="bg-[#1795FF]"],
.legacy-tool-root button[type="submit"] {
    background: var(--legacy-petrol) !important;
    border-color: var(--legacy-petrol) !important;
    color: #fff !important;
}

.legacy-tool-root button[class*="bg-green"],
.legacy-tool-root a[class*="bg-green"] {
    background: var(--legacy-lime) !important;
    border-color: var(--legacy-lime) !important;
    color: var(--legacy-petrol) !important;
}

.legacy-tool-root a:not([class*="bg-"]) {
    color: var(--legacy-petrol-mid);
    text-decoration-color: rgba(0, 50, 68, 0.35);
    text-underline-offset: 3px;
}

body.niblah-legacy-restyled > section:not(.legacy-tool-hero) {
    background: #fff !important;
    color: var(--legacy-ink);
}

.legacy-native-footer {
    background: var(--legacy-petrol);
    color: var(--legacy-ink);
    min-height: 980px;
    overflow: hidden;
    padding: 0 max(24px, calc((100% - var(--legacy-shell)) / 2)) 70px;
    position: relative;
}

.legacy-native-footer__geometry {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.legacy-native-footer__geometry span {
    background: rgba(255, 255, 255, 0.035);
    position: absolute;
}

.legacy-native-footer__geometry span:nth-child(1) {
    border-radius: 0 0 100% 0;
    height: 320px;
    left: 4%;
    top: 0;
    width: 320px;
}

.legacy-native-footer__geometry span:nth-child(2) {
    height: 210px;
    right: 10%;
    top: 160px;
    width: 300px;
}

.legacy-native-footer__geometry span:nth-child(3) {
    border-radius: 100% 0 0 0;
    bottom: 260px;
    height: 270px;
    right: 2%;
    width: 270px;
}

.legacy-native-footer__spacer {
    min-height: 420px;
}

.legacy-native-footer__card {
    background: #fff;
    border-radius: 8px;
    margin-inline: auto;
    max-width: var(--legacy-shell);
    padding: 60px;
    position: relative;
    z-index: 1;
}

.legacy-native-footer__top {
    display: grid;
    gap: 54px;
    grid-template-columns: 0.75fr 1.6fr 1.1fr;
    padding-bottom: 54px;
}

.legacy-native-footer__brand .legacy-brand-logo {
    filter: none;
    max-width: 190px;
    width: 100%;
}

.legacy-native-footer__links {
    display: grid;
    gap: 38px;
    grid-template-columns: repeat(3, 1fr);
}

.legacy-native-footer__links p,
.legacy-native-footer__newsletter > p {
    color: #91999a;
    font-size: 11px;
    margin: 0 0 15px;
}

.legacy-native-footer__links a {
    color: var(--legacy-ink);
    display: block;
    font-size: 13px;
    margin-bottom: 9px;
    text-decoration: none;
}

.legacy-native-footer__newsletter > div {
    align-items: center;
    background: var(--legacy-soft);
    border: 1px solid #dfe4e3;
    border-radius: 6px;
    display: flex;
    padding: 3px;
}

.legacy-native-footer__newsletter input[type="email"] {
    background: transparent;
    border: 0;
    min-height: 42px;
    min-width: 0;
    padding-inline: 12px;
    width: 100%;
}

.legacy-native-footer__newsletter button {
    align-items: center;
    background: var(--legacy-petrol);
    border: 0;
    border-radius: 5px;
    color: #fff;
    display: flex;
    justify-content: center;
    min-height: 40px;
    min-width: 44px;
}

.legacy-native-footer__newsletter > label {
    align-items: flex-start;
    color: #858e90;
    display: flex;
    font-size: 10px;
    gap: 7px;
    line-height: 1.4;
    margin-top: 10px;
}

.legacy-native-footer__newsletter > label input {
    margin-top: 2px;
}

.legacy-native-footer__newsletter a {
    color: var(--legacy-petrol);
}

.legacy-native-footer__status {
    color: var(--legacy-muted);
    font-size: 11px;
    margin: 8px 0 0;
}

.legacy-native-footer__statement {
    align-items: end;
    border-block: 1px solid #dfe4e3;
    display: flex;
    justify-content: space-between;
    padding-block: 48px;
}

.legacy-native-footer__statement p {
    color: var(--legacy-ink);
    font-size: 28px;
    line-height: 1.08;
    margin: 0;
}

.legacy-native-footer__statement a {
    background: var(--legacy-petrol);
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    padding: 13px 16px;
    text-decoration: none;
}

.legacy-native-footer__bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
}

.legacy-native-footer__bottom p,
.legacy-native-footer__bottom a {
    color: #7f898b;
    font-size: 10px;
    margin: 0;
    text-decoration: none;
}

.legacy-native-footer__bottom > div {
    display: flex;
    gap: 18px;
}

.legacy-visually-hidden {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 900px) {
    .legacy-tool-hero,
    .legacy-tool-hero-shell {
        min-height: 460px;
    }

    .legacy-tool-hero h1 {
        font-size: 50px !important;
    }

    .legacy-tool-root:is(main) > * {
        padding-block: 72px !important;
    }
}

@media (max-width: 768px) {
    body.niblah-legacy-restyled > header {
        min-height: 72px;
    }

    .legacy-site-header .legacy-header-shell {
        grid-template-columns: 1fr auto;
        min-height: 72px;
        padding-inline: 18px;
    }

    .legacy-site-header .legacy-primary-nav,
    .legacy-site-header .legacy-header-actions {
        display: none;
    }

    .legacy-site-header .legacy-mobile-nav {
        display: block;
        position: relative;
    }

    .legacy-site-header .legacy-mobile-nav > summary {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        padding: 12px;
    }

    .legacy-site-header .legacy-mobile-nav > summary span {
        background: #fff;
        display: block;
        height: 1px;
        width: 20px;
    }

    .legacy-site-header .legacy-mobile-panel {
        background: #fff;
        border: 1px solid var(--legacy-line);
        border-radius: 8px;
        box-shadow: 0 18px 44px rgba(0, 24, 32, 0.2);
        display: grid;
        gap: 3px;
        min-width: 240px;
        padding: 12px;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
    }

    .legacy-site-header .legacy-mobile-panel a {
        border-radius: 5px;
        color: var(--legacy-petrol) !important;
        font-size: 14px;
        padding: 10px;
        text-decoration: none;
    }

    .legacy-brand-logo {
        width: 122px;
    }

    .legacy-tool-hero h1 {
        font-size: 43px !important;
    }

    .legacy-tool-hero p {
        font-size: 17px !important;
    }

    .legacy-tool-root h2 {
        font-size: 34px !important;
    }

    .legacy-native-footer {
        min-height: 880px;
    }

    .legacy-native-footer__spacer {
        min-height: 300px;
    }

    .legacy-native-footer__card {
        padding: 38px;
    }

    .legacy-native-footer__top {
        grid-template-columns: 1fr;
    }

    .legacy-native-footer__links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .legacy-tool-hero,
    .legacy-tool-hero-shell {
        min-height: 430px;
    }

    .legacy-tool-hero-shell {
        border-inline: 0;
        padding-block: 56px 68px;
    }

    .legacy-tool-hero h1 {
        font-size: 38px !important;
        line-height: 1.06 !important;
    }

    .legacy-tool-hero p {
        font-size: 16px !important;
    }

    .legacy-tool-root:not(main) {
        padding: 62px 18px 84px !important;
    }

    .legacy-tool-root:is(main) > * {
        padding-block: 62px !important;
        padding-inline: 18px !important;
    }

    .legacy-tool-root h2 {
        font-size: 31px !important;
    }

    .legacy-native-footer {
        min-height: 0;
        padding-inline: 18px;
    }

    .legacy-native-footer__spacer {
        min-height: 220px;
    }

    .legacy-native-footer__card {
        padding: 26px 22px;
    }

    .legacy-native-footer__links {
        gap: 24px;
        grid-template-columns: 1fr 1fr;
    }

    .legacy-native-footer__statement {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .legacy-native-footer__statement p {
        font-size: 24px;
    }

    .legacy-native-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .legacy-native-footer__bottom > div {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
html,
body {
  max-width: 100%;
  overflow-x: clip !important;
}

@media (max-width: 600px) {
  main .text-center.mb-8 > .flex.justify-center.space-x-8.mb-8 {
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  main .text-center.mb-8 > .flex.justify-center.space-x-8.mb-8 > * {
    justify-content: center;
    margin-left: 0 !important;
    min-width: 0;
  }

  main .text-center.mb-8 > .flex.justify-center.space-x-8.mb-8 span {
    overflow-wrap: anywhere;
  }

  body:has(.legacy-tool-original-heading) div.text-center.mb-8 > div:last-child {
    flex-wrap: wrap !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  body:has(.legacy-tool-original-heading) .grid.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: 100% !important;
  }

  body:has(.legacy-tool-original-heading) .grid.grid-cols-3 > * {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }
}

/* Keep migrated tool actions readable inside the Ordina color system. */
body.niblah-legacy-restyled a[class*="border-white"][class*="text-white"] {
  background-color: var(--legacy-petrol);
  border-color: var(--legacy-petrol);
  color: var(--legacy-white);
}

body.niblah-legacy-restyled a[class*="border-white"][class*="text-white"]:hover {
  background-color: var(--legacy-petrol-mid);
  border-color: var(--legacy-petrol-mid);
  color: var(--legacy-white);
}

body.niblah-legacy-restyled [class*="bg-[#1795FF]"] {
  background-color: var(--legacy-petrol);
  color: var(--legacy-white);
}

body.niblah-legacy-restyled [class*="bg-[#1795FF]"]:hover {
  background-color: var(--legacy-petrol-mid);
  color: var(--legacy-white);
}

body.niblah-legacy-restyled [class*="bg-green-600"][class*="text-white"] {
  background-color: #087a3b;
}

body.niblah-legacy-restyled [class*="bg-green-600"][class*="text-white"]:hover {
  background-color: #05602f;
}

body.niblah-legacy-restyled a[aria-label="Chat met Niblah via WhatsApp"] {
  background-color: #075e54;
  color: var(--legacy-white);
}

body.niblah-legacy-restyled a[aria-label="Chat met Niblah via WhatsApp"]:hover {
  background-color: #054c44;
}

body.niblah-legacy-restyled :is(
  a[class*="border-white"][class*="text-white"],
  [class*="bg-[#1795FF]"],
  [class*="bg-green-600"][class*="text-white"],
  a[aria-label="Chat met Niblah via WhatsApp"]
):focus-visible {
  outline: 3px solid #7fd8ff;
  outline-offset: 3px;
}
