:root {
    --color-primary: #1e1e4b;
    --color-secondary: #58B89D;
    --color-secondary-light: #EAFAF7;
    --color-tertiary: #eeb13e;
    --color-link: #379a89;
    --border-image: #eee;
}

/* iconen */
.fa-icon {
    padding-left: 2px;
    padding-right: 2px;

    display: inline-flex;
    /* align-items: center; */
    width: auto;
    height: auto;

    font-size: 20px;
    line-height: 26px;
}
    .fa-icon svg {
        width: 0.9em;
        max-height: 0.9em;
        /* vertical-align: super; */

        position: relative;
        bottom: -3px;
    }

.fa-icon.is-link {
    cursor: pointer;
    font-size: 16px;
}

    .fa-icon.is-link svg {
        bottom: 0;
    }

    .fa-icon.is-link svg path {
        fill: var(--color-secondary);
    }

    .fa-icon.is-link:hover {
        background-color: var(--color-secondary);
        border-radius: 2px;
        padding: 2px;
    }
    .fa-icon.is-link:hover svg path {
        fill: #fff;
    }

.fa-icon.dot-menu {
    font-size: 25px;
}
    .fa-icon.dot-menu svg {
        bottom: -7px;
    }

.his-link {
    color: var(--color-link);
    cursor: pointer;
}

    .his-link:hover {
        text-decoration: underline;
    }

.his-button,
.his-icon-button {
    font-weight: 600;
    font-size: 90%;
    color: #fff;
    display: inline-block;
}

.his-button {
    padding: 0px 10px;
}

.his-icon-button {
    padding: 0px 2px;
}

    .his-icon-button.with-text {
        padding: 0px 10px;
    }

    .his-icon-button .fa-icon svg path {
        fill: white;
    }

    .his-button.primary,
    .his-icon-button.primary {
        background-color: var(--color-primary);
        border: 1px solid var(--color-primary);
    }

    .his-button.secondary,
    .his-icon-button.secondary {
        background-color: var(--color-secondary);
        border: 1px solid var(--color-secondary);
    }

    .his-button.tertiary,
    .his-icon-button.tertiary {
        background-color: var(--color-tertiary);
        border: 1px solid var(--color-tertiary);
    }   

    .his-button.secondary-light,
    .his-icon-button.secondary-light {
        color: var(--color-secondary);
        border: 1px solid var(--color-secondary);
        background-color: var(--color-secondary-light);
    }

    .his-button.link .fa-icon svg path,
    .his-icon-button.link  .fa-icon svg path,
    .his-icon-button.secondary-light .fa-icon svg path {
        fill: var(--color-secondary);
    }

article > img,
.attention > img,
.tabbed-block > img {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-image);
    padding: 10px;
}

article > figure img,
.attention > figure img,
.tabbed-block > figure img {
    border: 1px solid var(--border-image);
    padding: 10px;
}

    article > figure figcaption,
    .attention > figure figcaption,
    .tabbed-block > figure figcaption {
        font-size: 80%;
        color: #999;
    }

/* aside.footnote {
    display: grid;
    grid-template-columns: auto 1fr;
} */

aside.footnote .label {
    display: block;
    width: 25px;
}

aside.footnote p {
    display: inline-block;
    margin-top: 0px;
}

/******* Sticky first row of table: needed for external tools overview *******/
.md-header,
.md-header-nav {
  /* Verhoog naar bovenste laag */
  z-index: 1000 !important;
}
/* 1) Maak de wrapper relatieve scrollbox onder de ImMaterial-header */
.md-typeset .dynamic-csv-table-wrapper {
  position: relative;
  max-height: calc(80vh - var(--md-header-height, 3rem)); /* of een fixed px/rem hoogte */
  overflow: auto;
  margin-top: 1rem; /* optioneel, wat breathing space */
}

/* 2) Zorg dat de table z’n inline-sticky children toestaat */
.md-typeset table.docutils {
  border-collapse: separate;
  position: relative;
  width: 100%;
}

/* 3) Sticky eerste kolom */
.md-typeset table.docutils th:first-child,
.md-typeset table.docutils td:first-child {
  position: sticky;
  left: 0;
  background: var(--md-default-bg-color);
  z-index: 3;
}

/* 4) Maak alle thead th sticky */
.md-typeset table.docutils thead th {
  position: sticky;
  background: var(--md-default-bg-color);
}

/* 5) Plak rij 1 exact bovenaan de scrollbox */
.md-typeset table.docutils thead tr:nth-child(1) th {
  top: 0;
  z-index: 5;
}

/* 6) Plak rij 2 net onder rij 1 */
.md-typeset table.docutils thead tr:nth-child(2) th {
  /* hoogte van je eerste header-rij, pas aan als nodig */
  top: 2.5rem;
  z-index: 4;
}
