/* nav-menu.css: the phone and tablet menu (Tom, 2026-10-04: "veel mooier,
   gebruiksvriendelijk"). One solid sheet under the top bar instead of the old
   see-through dropdown: big links with icons, the Download button and the
   languages in one row. nav-menu.js builds it from the page's own nav. */
:root {
    --llm-bg: #f8f8fb;
    --llm-card: #ffffff;
    --llm-seg: rgba(15, 23, 42, .045);
    --llm-line: rgba(15, 23, 42, .08);
    --llm-press: rgba(245, 158, 11, .08);
    --llm-text: #0f172a;
    --llm-muted: #64748b;
    --llm-tile: rgba(245, 158, 11, .13);
    --llm-tile-ink: #c2410c;
    --llm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 34px rgba(15, 23, 42, .07);
}
[data-theme="dark"] {
    --llm-bg: #0b0b11;
    --llm-card: #15151d;
    --llm-seg: rgba(255, 255, 255, .05);
    --llm-line: rgba(255, 255, 255, .08);
    --llm-press: rgba(245, 158, 11, .1);
    --llm-text: #f5f5f7;
    --llm-muted: #9ca3af;
    --llm-tile: rgba(245, 158, 11, .15);
    --llm-tile-ink: #fbbf24;
    --llm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
}

/* The pill behind the desktop links (shown from 1024 px, see below). */
.lln-track { display: none; }

/* The ☰ button: three bars that turn into a cross. */
.nav-mobile-toggle { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color .2s, box-shadow .2s, color .2s; }
.nav-mobile-toggle .llm-bars { position: relative; display: block; width: 18px; height: 14px; }
.nav-mobile-toggle .llm-bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: top .28s cubic-bezier(.2, .8, .2, 1), transform .28s cubic-bezier(.2, .8, .2, 1), opacity .18s ease; }
.nav-mobile-toggle .llm-bars i:nth-child(1) { top: 0; }
.nav-mobile-toggle .llm-bars i:nth-child(2) { top: 6px; }
.nav-mobile-toggle .llm-bars i:nth-child(3) { top: 12px; }
.nav-mobile-toggle[aria-expanded="true"] { color: var(--llm-text) !important; border-color: rgba(245, 158, 11, .6) !important; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.nav-mobile-toggle[aria-expanded="true"] .llm-bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] .llm-bars i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-mobile-toggle[aria-expanded="true"] .llm-bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-mobile-toggle:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

/* While open: the page stands still and the top bar is solid. */
html.llm-lock, html.llm-lock body { overflow: hidden !important; }
html.llm-lock nav:has(.nav-mobile-toggle) {
    background: var(--llm-bg) !important; border-bottom-color: var(--llm-line) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important;
}
/* The old dropdown never opens next to this menu. */
@media (max-width: 1023px) {
    html.llm-ready nav .nav-links.open { display: none !important; }
}

/* The sheet */
.llm {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--llm-top, 64px); z-index: 999;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--llm-bg); color: var(--llm-text);
    padding: 14px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.llm.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.llm-inner { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.llm.is-open .llm-links, .llm.is-open .llm-cta, .llm.is-open .llm-note, .llm.is-open .llm-lang { animation: llm-in .34s cubic-bezier(.2, .8, .2, 1) both; }
.llm.is-open .llm-cta { animation-delay: .05s; }
.llm.is-open .llm-note { animation-delay: .07s; }
.llm.is-open .llm-lang { animation-delay: .09s; }
@keyframes llm-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Links: one card, big rows with an amber icon tile. */
.llm-links { display: flex; flex-direction: column; padding: 6px; background: var(--llm-card); border: 1px solid var(--llm-line); border-radius: 22px; box-shadow: var(--llm-shadow); }
.llm-link { position: relative; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 8px 12px 8px 8px; border-radius: 16px;
    color: var(--llm-text) !important; text-decoration: none !important; font-size: 18px; font-weight: 750; letter-spacing: -.015em; line-height: 1.2;
    -webkit-tap-highlight-color: transparent; transition: background .15s ease; }
.llm-link + .llm-link::before { content: ""; position: absolute; top: 0; left: 62px; right: 12px; height: 1px; background: var(--llm-line); }
.llm-link:hover, .llm-link:active { background: var(--llm-press); }
.llm-link:hover::before, .llm-link:active::before, .llm-link:hover + .llm-link::before, .llm-link:active + .llm-link::before { opacity: 0; }
.llm-link:focus-visible { outline: 2px solid #f59e0b; outline-offset: -2px; }
.llm-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--llm-tile); color: var(--llm-tile-ink); }
.llm-icon svg { width: 21px; height: 21px; }
.llm-label { flex: 1 1 auto; min-width: 0; }
.llm-chev { flex: 0 0 auto; width: 18px; height: 18px; color: var(--llm-muted); opacity: .75; }
.llm-link[aria-current="page"] .llm-icon { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; box-shadow: 0 6px 16px rgba(245, 158, 11, .35); }
.llm-link[aria-current="page"] .llm-chev { color: #f59e0b; opacity: 1; }

/* Download: the V5 orange pill. */
.llm-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 4px; padding: 0 24px; border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316); color: #1a1204 !important; text-decoration: none !important;
    font-size: 17px; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 10px 28px rgba(245, 158, 11, .32);
    -webkit-tap-highlight-color: transparent; transition: transform .15s ease, box-shadow .15s ease; }
.llm-cta svg { width: 19px; height: 19px; }
.llm-cta:active { transform: scale(.985); box-shadow: 0 6px 18px rgba(245, 158, 11, .3); }
.llm-cta:focus-visible { outline: 2px solid #f59e0b; outline-offset: 3px; }
.llm-note { margin: -4px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--llm-muted); }

/* Languages: one segmented row. */
.llm-lang { margin-top: 6px; }
.llm-lang-title { margin: 0 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--llm-muted); }
.llm-lang-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--llm-seg); border: 1px solid var(--llm-line); }
.llm-lang-item { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; margin: 0; padding: 0 6px; border: 0; border-radius: 12px;
    background: transparent; color: var(--llm-text) !important; text-decoration: none !important; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .04em;
    cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s ease, box-shadow .15s ease; }
.llm-lang-item:active { background: var(--llm-press); }
.llm-lang-item[aria-current] { background: var(--llm-card); box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 0 0 1.5px #f59e0b; }
.llm-lang-item:focus-visible { outline: 2px solid #f59e0b; outline-offset: 1px; }
.llm-lang-item .ll-flag { flex: 0 0 auto; width: 20px !important; height: 14px !important; border-radius: 3px; }

/* Behind the menu on wide screens: the page dims a little; a click closes. */
.llm-scrim { position: fixed; left: 0; right: 0; bottom: 0; top: var(--llm-top, 64px); z-index: 998; background: rgba(15, 23, 42, .16);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.llm-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
[data-theme="dark"] .llm-scrim { background: rgba(0, 0, 0, .4); }

/* Desktop (Tom, 2026-10-05: "knoppen terug bovenaan zoals eerder, maak mooi
   design"): from 1024 px the links sit in the top bar again; the ☰ menu above
   is for phones and tablets only. The four page links form one segmented pill
   (the same look as the language row in the menu: the current page is a white
   chip with an amber ring), centred between the logo and the controls. Then
   language, theme and cart as round buttons, and the orange Download pill. */
:root {
    --lln-seg: rgba(15, 23, 42, .05);
    --lln-seg-line: rgba(15, 23, 42, .06);
    --lln-hover: rgba(255, 255, 255, .75);
    --lln-chip: #ffffff;
    --lln-chip-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 4px 12px rgba(15, 23, 42, .06), 0 0 0 1.5px rgba(245, 158, 11, .7);
    --lln-btn: rgba(255, 255, 255, .9);
    --lln-btn-line: rgba(15, 23, 42, .11);
}
[data-theme="dark"] {
    --lln-seg: rgba(255, 255, 255, .055);
    --lln-seg-line: rgba(255, 255, 255, .07);
    --lln-hover: rgba(255, 255, 255, .07);
    --lln-chip: #1d1d27;
    --lln-chip-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3), 0 0 0 1.5px rgba(245, 158, 11, .75);
    --lln-btn: rgba(255, 255, 255, .05);
    --lln-btn-line: rgba(255, 255, 255, .1);
}
@media (min-width: 1024px) {
    html.llm-ready nav .nav-mobile-actions { display: none !important; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links { position: relative; display: flex !important; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 0; margin: 0 0 0 24px; padding: 0; }
    /* Controls (language, theme, cart, Download) keep their own spacing. */
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li:not(:has(> a:not(.nav-cta))) { margin: 0 0 0 8px; padding: 0; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li.llc-li:has(> .llc-btn[hidden]) { display: none; }

    /* The segmented pill: the page links sit side by side, centred between
       the logo and the controls; nav-menu.js draws one shape (.lln-track)
       exactly behind them, so there are no seams between the links. */
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li:has(> a:not(.nav-cta)) {
        position: relative; z-index: 1; display: flex; align-items: center; margin: 0; padding: 4px 0;
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li:has(> a:not(.nav-cta)):first-child { margin-left: auto; padding-left: 4px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li:has(> a:not(.nav-cta)):is(:has(+ li.lang-switcher), :has(+ li.llc-li), :has(+ li > .theme-toggle), :has(+ li > .nav-cta), :has(+ li.lln-track), :last-child) {
        margin-right: auto; padding-right: 4px;
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li.lln-track {
        display: block; position: absolute; z-index: 0; margin: 0 !important; padding: 0; list-style: none; pointer-events: none;
        border-radius: 999px; background: var(--lln-seg); box-shadow: inset 0 0 0 1px var(--lln-seg-line);
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li:has(> a:not(.nav-cta)) + li:not(:has(> a:not(.nav-cta))) { margin-left: 16px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > a:not(.nav-cta) {
        display: block; padding: 7px 16px; border-radius: 999px; background: transparent;
        color: var(--text-secondary, #475569); font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; text-decoration: none;
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > a:not(.nav-cta):hover { color: var(--text-primary, #0f172a); background: var(--lln-hover); }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > a:not(.nav-cta)[aria-current="page"],
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > a:not(.nav-cta).active {
        color: var(--text-primary, #0f172a); background: var(--lln-chip); box-shadow: var(--lln-chip-shadow);
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > a:not(.nav-cta):focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

    /* Round buttons: language, theme, cart. */
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .lang-menu-toggle {
        height: 40px; padding: 0 12px 0 11px; border-radius: 999px; border: 1px solid var(--lln-btn-line); background: var(--lln-btn);
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > .theme-toggle,
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .llc-btn {
        display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0;
        border-radius: 999px; border: 1px solid var(--lln-btn-line); background: var(--lln-btn); color: var(--text-secondary, #475569); cursor: pointer;
        transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > .theme-toggle svg { width: 18px; height: 18px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .llc-btn svg { width: 20px; height: 20px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > .theme-toggle:hover,
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .llc-btn:hover {
        color: var(--text-primary, #0f172a); border-color: rgba(245, 158, 11, .6); box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
    }

    /* Download: the V5 orange pill with an arrow. */
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .nav-cta {
        display: inline-flex !important; align-items: center; gap: 8px; height: 40px; padding: 0 20px 0 21px !important; border-radius: 999px !important;
        background: linear-gradient(135deg, #f59e0b, #f97316) !important; color: #1a1204 !important; border: 0;
        font-size: 14.5px; font-weight: 800 !important; letter-spacing: -.01em; text-decoration: none;
        box-shadow: 0 6px 18px rgba(245, 158, 11, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
        transition: transform .15s ease, box-shadow .15s ease;
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .nav-cta::after {
        content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(245, 158, 11, .4), inset 0 1px 0 rgba(255, 255, 255, .3); }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .nav-cta:focus-visible { outline: 2px solid #f59e0b; outline-offset: 3px; }
}
/* Small laptops: the same bar, a little tighter (French needs the most room). */
@media (min-width: 1024px) and (max-width: 1279px) {
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links { margin-left: 16px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li > a:not(.nav-cta) { padding: 7px 11px; font-size: 13.5px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li:not(:has(> a:not(.nav-cta))) { margin-left: 6px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links > li:has(> a:not(.nav-cta)) + li:not(:has(> a:not(.nav-cta))) { margin-left: 12px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .lang-menu-toggle { padding: 0 9px; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .lang-menu-code { display: none; }
    html.llm-ready nav:has(.nav-mobile-toggle) .nav-links .nav-cta { padding: 0 16px !important; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .llm-scrim { transition: none; }
    .llm, .llm.is-open, .nav-mobile-toggle .llm-bars i { transition: none; }
    .llm.is-open .llm-links, .llm.is-open .llm-cta, .llm.is-open .llm-note, .llm.is-open .llm-lang { animation: none; }
}
