:root {
    --blue-dark:  #1D6FEB;
    --blue-mid:   #1558C0;
    --blue-light: #e8f1fd;
    --blue-bg:    #f4f7fe;
    --white:      #ffffff;
    --text-dark:  #111827;
    --text-mid:   #374151;
    --text-muted: #6b7280;
    --border:     #e5e7eb;
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--blue-bg);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
}

/* ── Nav ── */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo-img {
    height: 26px;
    width: auto;
    display: block;
}
.nav-logo-site {
    color: #6b7280;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* Nav search */
.nav-search-wrap {
    flex: 1;
    max-width: 420px;
}
.nav-search-wrap form {
    display: flex;
    align-items: center;
    background: var(--blue-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.nav-search-wrap form:focus-within {
    border-color: var(--blue-dark);
}
.nav-search-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-dark);
    font-size: 13px;
    font-family: inherit;
    padding: 8px 12px;
}
.nav-search-wrap input::placeholder { color: #9aa3b8; }
.nav-search-wrap button {
    background: none;
    border: none;
    color: #9aa3b8;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: color 0.15s;
}
.nav-search-wrap button:hover { color: var(--blue-dark); }

.nav-links { display: flex; gap: 4px; flex-shrink: 0; }
.nav-links a {
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text-dark); background: var(--blue-bg); }
.nav-links a.active { color: var(--blue-dark); background: var(--blue-light); font-weight: 500; }

.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: #6b7280;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 6px;
}
.mobile-menu a.active,
.mobile-menu a:hover { background: var(--blue-bg); color: var(--blue-dark); }
.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.mobile-search input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.mobile-search input::placeholder { color: var(--text-muted); }
.mobile-search button {
    background: var(--blue-dark);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

/* ── Hero ── */
.hero {
    background: var(--blue-dark);
    padding: 52px 32px 48px;
    text-align: center;
}
.hero h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}
.hero p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 28px;
}
.search-wrap {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}
.search-wrap input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    color: var(--text-dark);
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.search-wrap input::placeholder { color: #9aa3b8; }
.search-wrap .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-mid);
    font-size: 18px;
    pointer-events: none;
}
.search-hint {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    margin-top: 10px;
}

/* ── Sections ── */
.section {
    padding: 28px 32px 20px;
}
.section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

/* ── Specialisme cards ── */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.spec-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.spec-card:hover {
    border-color: var(--blue-mid);
    box-shadow: 0 2px 8px rgba(33,50,104,0.08);
}
.spec-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--blue-dark);
}
.spec-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.spec-card-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Abbreviation list ── */
.abbr-section { padding: 20px 32px; }
.abbr-section-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge {
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
}
.abbr-list { display: flex; flex-direction: column; gap: 6px; }
.abbr-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    gap: 14px;
    transition: border-color 0.15s;
}
.abbr-row:hover { border-color: #c0cadf; }
.abbr-row.has-desc { cursor: pointer; }
.abbr-code {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-dark);
    min-width: 90px;
    font-family: 'Courier New', monospace;
}
.abbr-value {
    font-size: 13px;
    color: var(--text-mid);
    flex: 1;
}
.abbr-tag {
    font-size: 11px;
    color: var(--blue-mid);
    background: var(--blue-light);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.copy-dropdown {
    position: relative;
    flex-shrink: 0;
}
.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-mid);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}
.copy-btn:hover { border-color: var(--blue-dark); color: var(--blue-dark); }
.copy-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.copy-dropdown.open .copy-menu { display: block; }
.copy-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    color: var(--text-mid);
    transition: background 0.1s;
}
.copy-option:last-child { border-bottom: none; }
.copy-option:hover { background: var(--blue-light); color: var(--blue-dark); }
.copy-option span { color: var(--blue-dark); font-weight: 500; }
.abbr-desc {
    display: none;
    padding: 10px 16px 14px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.abbr-row.open + .abbr-desc { display: block; }
.abbr-wrap { border: 1px solid var(--border); border-radius: 8px; background: var(--white); margin-bottom: 6px; overflow: visible; }
.abbr-wrap .abbr-row { border: none; border-radius: 0; margin-bottom: 0; }

/* ── Search results ── */
.search-results { padding: 20px 32px; }
.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}
.search-empty strong { display: block; font-size: 16px; color: var(--text-dark); margin-bottom: 6px; }

/* ── Suggest bar ── */
.suggest-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 0 32px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.suggest-bar-icon { color: var(--blue-mid); font-size: 22px; flex-shrink: 0; }
.suggest-bar-text { flex: 1; }
.suggest-bar-text p { font-size: 13px; font-weight: 500; color: var(--text-dark); }
.suggest-bar-text span { font-size: 12px; color: var(--text-muted); }
.suggest-btn {
    background: var(--blue-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
.suggest-btn:hover { background: var(--blue-mid); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 0 32px 20px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-title { font-size: 16px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--text-muted); }
.search-empty-msg { color: var(--text-muted); font-size: 14px; padding: 20px 0; }

/* ── Footer ── */
.footer {
    background: var(--blue-dark);
    padding: 28px 32px;
    margin-top: 16px;
}
.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    margin-bottom: 4px;
}
.footer p {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}
.footer-copy { color: rgba(255,255,255,0.25) !important; font-size: 11px !important; }
.footer-copy a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-copy a:hover { color: rgba(255,255,255,0.7); }

/* ── Forms ── */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 600px;
    margin: 32px auto;
}
.form-card h2 { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-mid); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue-mid); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-primary {
    background: var(--blue-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--blue-mid); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #eafaf1; border: 1px solid #a8e6c1; color: #1a6636; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Specialisme page header (geïntegreerd) ── */
.spec-page-header {
    background: var(--blue-dark);
    padding: 20px 32px 24px;
}
.spec-header-top { margin-bottom: 12px; }
.spec-back {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}
.spec-back:hover { color: #fff; }
.spec-page-header h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 3px;
}
.spec-page-header > p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-bottom: 16px;
}
.spec-header-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.spec-header-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
}
.spec-header-search input::placeholder { color: #9aa3b8; }
.spec-header-clear {
    color: #b0bcd4;
    font-size: 13px;
    text-decoration: none;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.15s;
}
.spec-header-clear:hover { color: var(--text-dark); }
.spec-header-search button {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    color: #9aa3b8;
    padding: 11px 14px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.15s;
    flex-shrink: 0;
}
.spec-header-search button:hover { color: var(--blue-dark); }
.spec-desc-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 20px;
}
.group-block { margin-bottom: 28px; }

/* ── Page header (generiek) ── */
.page-header {
    background: var(--blue-dark);
    padding: 28px 32px 24px;
}
.page-header h1 { color: #fff; font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.page-header p { color: rgba(255,255,255,0.55); font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav { padding: 10px 16px; gap: 10px; }
    .nav-search-wrap { display: none; }
    .nav-links { display: none; }
    .nav-mobile-btn { display: block; }

    .hero { padding: 36px 16px 32px; }
    .hero h1 { font-size: 22px; }
    .hero .search-wrap { flex-direction: row; }

    .section, .abbr-section, .search-results { padding: 20px 16px; }
    .suggest-bar { margin: 0 16px 20px; flex-wrap: wrap; gap: 12px; }
    .suggest-bar-text p { font-size: 14px; }
    .suggest-btn { width: 100%; text-align: center; }
    .divider { margin: 0 16px 16px; }

    .spec-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-grid-lg { grid-template-columns: repeat(2, 1fr); }

    .page-header { padding: 24px 16px 20px; }
    .form-card { margin: 16px; padding: 20px; }

    /* Afkorting rijen op mobiel */
    .abbr-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .abbr-code { min-width: 70px; font-size: 12px; }
    .abbr-value { font-size: 13px; min-width: 0; }
    .abbr-tag { display: none; }
    .copy-dropdown { width: 100%; }
    .copy-btn { width: 100%; justify-content: center; font-size: 14px; padding: 8px; }
    .copy-menu { left: 0; right: 0; min-width: unset; }
    .copy-option { font-size: 14px; padding: 12px 14px; }

    /* Specialisme pagina header */
    .spec-page-header { padding: 20px 16px; }
    .spec-header-search { flex-direction: row; }

    /* Zoekresultaten */
    .abbr-section { padding: 16px; }
    .group-block { margin-bottom: 20px; }
}

/* ── Afkorting detailpagina ── */
.abbr-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.abbr-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.abbr-detail-code {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-dark);
    font-family: 'Courier New', monospace;
    margin-right: 12px;
}
.abbr-detail-value {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}
.abbr-detail-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}
.abbr-detail-group {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}
