@font-face {
  font-family: "ROsanswebtextregular";
  src: url("fonts/ROsanswebtextregular.woff") format('truetype');
}

@font-face {
  font-family: "RijksSansWeb";
  src: url("../assets/RijksSansWeb-Bold.woff2") format('woff2');
  font-weight: bold;
  font-style: normal;
}

body{
  font-family: "ROsanswebtextregular" !important;
}

.md-top:hover {
  color: var(--md-default-fg-color--light);
  background-color: var(--md-accent-bg-color);
  box-shadow: var(--md-shadow-z3);
}

.mdx-badge {
  font-size: .85em;
  display: inline-block;
  margin: .2rem .3rem;
}

.mdx-badge__icon {
  border-top-left-radius: .1rem;
  border-bottom-left-radius: .1rem;
  background: var(--md-accent-fg-color--transparent);
  padding: .2rem;
  color: var(--md-accent-fg-color);
}

.mdx-badge__text {
  border-bottom-right-radius: .1rem;
  border-top-right-radius: .1rem;
  background: var(--md-accent-fg-color--transparent);
  padding: .2rem .3rem;
  color: var(--md-accent-fg-color);
  font-weight: 500;
}

.mdx-badge a {
  color: var(--md-accent-fg-color);
  text-decoration: none;
}

.md-typeset .grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

p, h1, h2, h3, h4, h5, h6 {
  color: #154273;
}

h1 {
  font-family: "RijksSansWeb", "ROsanswebtextregular", sans-serif !important;
  font-weight: bold !important;
  font-size: 2.75rem !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
}

.md-typeset h2 {
  font-size: 1.2em;
  margin-block-end:0;
  font-weight: 500;
}

.md-typeset h3 {
  font-size: 1.1em;
  margin-block-end:0;
  font-weight: 500;
}

.md-typeset hr {
  margin: 1em 0;
}

/* Stijlen voor de tabel */
table {
  width: 100%;
  border-collapse: collapse;

}

.md-typeset table{
  border: none !important;
  box-shadow:none;
}

.md-typeset__table {
color: #154271;
}


th {
  background-color: #F1F5F9; /* Achtergrondkleur van de tabelkop */
  color: #475569; /* Kleur van de tabelkoptekst */
  border: none; /* Geen randen */
  padding: 12px;
  text-align: left;
  font-size: 16px;
  font-family: "ROsanswebtextregular", sans-serif; /* Custom font */
  font-weight: 400;
}

td {
  padding: 12px;
  text-align: left;
  border: none; /* Geen randen */
  font-family: "ROsanswebtextregular", sans-serif; /* Custom font */
  min-width: 150px;
}

/* WCAG AA: Responsive tables for 320px viewport */
@media (max-width: 320px) {
  table, thead, tbody, th, td, tr {
    display: block !important;
  }
  
  thead tr {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
  }
  
  tr {
    border: 1px solid #B9C7D5 !important;
    margin-bottom: 10px !important;
    padding: 10px !important;
    border-radius: 4px;
  }
  
  td {
    border: none !important;
    position: relative !important;
    padding-left: 50% !important;
    min-width: auto !important;
  }
  
  td:before {
    content: attr(data-label) ": " !important;
    position: absolute !important;
    left: 6px !important;
    width: 45% !important;
    padding-right: 10px !important;
    white-space: nowrap !important;
    font-weight: bold !important;
    color: #475569 !important;
  }
}

tr {
  border-bottom: 1px solid #B9C7D5; /* Ondergrens van de rijen */
  font-size: 16px;
}

tbody tr td a {
  color: #154273;
  text-decoration: underline;
}

tbody tr td a:hover {
  text-decoration: underline;
}

.float-container a {
  color: #154273;
  text-align: left;
  text-decoration: underline;
}

/* Grid Styling */
.md-typeset .grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

/* Admonition Styling */
:root {
  --md-admonition-icon--simple: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>');
  --md-accent-fg-color: #316fb3!important;
}


.md-typeset .admonition.simple,
.md-typeset details.simple {
  border-color: rgb(5, 80, 141);
  text-align: left;
}

.md-typeset .simple > .admonition-title,
.md-typeset .simple > summary {
  background-color: rgba(185, 185, 185, 0.1);
  text-align: left;
}

.md-typeset .simple > .admonition-title::before,
.md-typeset .simple > summary::before {
  background-color: rgb(5, 80, 141);
  -webkit-mask-image: var(--md-admonition-icon--simple);
  mask-image: var(--md-admonition-icon--simple);
}

/* Info Section */
.info-section {
  margin-bottom: 30px;
  text-align: left; /* Ensure left alignment */
}

.info-section h2 {
  font-size: .8em;
  color: #154273;
  margin: 0 0 10px;
  text-align: left; /* Ensure left alignment */
}

.subheader a {
  color: #154273;
  text-decoration: underline;
  text-align: left;
}

.subheader a:hover {
  text-decoration: none;
  text-align: left;
}

.float-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 16px; /* Space between the boxes */
  padding-bottom: 32px;
  padding-top: 16px;
}

.float-container h2 {
width: 100%;
border-bottom: solid 3px #154271;
padding-bottom: 8px;
}

.float-child {
  background-color: #e5f1f9;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Push the content and the "Bekijk alle" link to the bottom */
  min-height: 300px; /* Set a minimum height for uniform containers */
}

.float-child-white {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Push the content and the "Bekijk alle" link to the bottom */
  min-height: 300px; /* Set a minimum height for uniform containers */
  max-width: 500px;
}

.float-box{
  margin: -12px 24px 24px 24px;
}

.styled-list ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.styled-list ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.float-child-title{
  width: 100%;
  border-bottom: solid 2px #154273;
}

.styled-list ul li::before {
  content: '\203A'; /* Unicode arrow symbol */
  margin-right: 8px;
  color: #154273;
  font-weight: bold;
}

/* Styling for the "Bekijk alle" links */
.show-more {
  margin-top: auto; /* Push the "Bekijk alle" link to the bottom */
  text-decoration: underline;
  color: #154273;
  font-weight: bold;
}

/* Footer Sectie */
.footer-section {
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  text-align: left;
}

.footer-section h2 {
  font-size: 1.5em;
  color: #154273;
  text-align: left;
}

.footer-section a {
  color: #154273;
  font-weight: bold;
  text-align: left;

}

.footer-section a:hover {
  text-decoration: underline;
  text-align: left;
}

/* Full Width Outline Block */
.full-width-outline-block {
  width: 100%;
  border: 1px solid #154273; /* Kleur van de outline */
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 20px;
  text-align: left;
}

.full-width-header {
  font-size: 1.5em;
  color: #154273;
  margin: 0 0 10px;
  text-align: left;
}

.full-width-item {
  margin: 10px 0;
  text-align: left;
}

.item-description {
  font-size: 1em;
  color: #666;
  margin: 0 0 10px;
  text-align: left;
}

.show-more-link {
  font-weight: bold;
  color: #154273;
  text-decoration: none;
  text-align: left;
}

.show-more-link:hover {
  text-decoration: underline;
  text-align: left;
}

[dir=ltr] .md-typeset .float-container ol li, [dir=ltr] .md-typeset .float-container ul li {
  margin-left: 0;
  text-align: left;
}

[dir=ltr] .md-typeset .float-container ol, [dir=ltr] .md-typeset .float-container ul {
  margin-left: 0;
}

#algoritmekader {
  margin-bottom: 0.2rem;
}

/* Badge Styling */
.mdx-badge {
  font-size: 0.85em;
  display: inline-block;
  margin: 0.2rem 0.3rem;
  text-align: left;
}

.mdx-badge__icon {
  border-radius: 0.1rem 0 0 0.1rem;
  background: var(--md-accent-fg-color--transparent);
  text-align: left;
}

.mdx-badge__text {
  border-radius: 0 0.1rem 0.1rem 0;
  padding: 0.2rem 0.3rem;
  text-align: left;
  text-decoration: none;
}

.mdx-badge a {
  color: var(--md-accent-fg-color);
  text-align: left;
  text-decoration: none;
}

/* Grid Styling */
.md-typeset .grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  text-align: left;
}

/* Admonition Styling */
:root {
  --md-admonition-icon--simple: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z"/></svg>');
}

.md-typeset .admonition.simple,
.md-typeset details.simple {
  border-color: rgb(5, 80, 141);
  text-align: left;
}

.md-typeset .simple > .admonition-title,
.md-typeset .simple > summary {
  background-color: rgba(185, 185, 185, 0.1);
  text-align: left;
}

.md-typeset .simple > .admonition-title::before,
.md-typeset .simple > summary::before {
  background-color: rgb(5, 80, 141);
  -webkit-mask-image: var(--md-admonition-icon--simple);
  mask-image: var(--md-admonition-icon--simple);
  text-align: left;
}

/* Algemene layout van de header */
.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  text-align: left;
}

.version-container {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  margin-top: -50px;
  position: relative; /* Voeg dit toe om de hover-info correct te positioneren */
}

.version-label {
  font-size: 0.85em;
  background-color: #B1D5EC;
  color: #154273;
  padding: 4px;
  border-radius: 3px;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  text-align: left;
}

.hover-info {
  font-size: 0.85em;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px 10px;
  white-space: normal;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: auto;
  min-width: 300px;
  max-width: 400px;
}

.version-container:hover .hover-info,
.hover-info:hover {
  display: block;
}

.subheader {
  font-size: 1.2em;
  color: #154273;
  margin-left: 0;
  text-align: left;
}

.md-container li{
  color: #154273;
}

.md-source-file{
  display: none;
}

.md-typeset, td {
  line-height: 1.3;
  font-size: 0.875rem; /* Adjusted for 16px root: (14px / 16px) * 1rem */
}

.md-typeset ol li, .md-typeset ul li {
  margin-bottom: .3em;
}

.md-typeset h1{
  margin: 0.6em 0 .4em 0;
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1em;
}


.block-image {
  width: 100%;           /* Zorgt ervoor dat de afbeelding over de breedte van het blok gaat */
  height: 120px;         /* Stel een vaste hoogte in voor consistente weergave */
  object-fit: cover;     /* Snijdt de afbeelding bij om het blok volledig te vullen */
}

.md-icon svg{
  color: #154273;
}

.subheader{
  font-size: 1.5em;
}

.grid a{
  text-decoration: underline;
  font-weight: 600;
}

.md-typeset a:hover{
  color: #316fb3;
}

a{
  text-decoration: underline;
}

.md-sidebar__scrollwrap{
  scrollbar-color:#316fb3;
}

[data-md-color-accent=indigo]{
  --md-accent-fg-color:#B2D7EE;
}

.button-primary {
  background-color: #154273;
  color: #fff;
  border: 1px solid transparent;
  /* Ensure it doesn't go full width */
  display: inline-block;
}

.button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.3em;
  border: 1px solid #ccc;
  display: inline-block; /* Avoid full width */
  width: fit-content;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  margin: 0 0.5em 0.5em 0;
  -webkit-transition: color 150ms ease-in-out;
  transition: color 150ms ease-in-out;
  padding: 1em 1em .8em 1.2em;
  position: relative;
  text-align: center;
  text-shadow: none;
  user-select: none;
  vertical-align: middle;
  word-break: break-word;
  font-size: 0.7rem;
  cursor: pointer;
}

.float-child-content{
padding:.3em 0 .2em 0;
width: 85%;
color: #154273;
}

[data-md-color-accent=indigo]{
  --md-accent-fg-color:154271 !important;
  --md-accent-fg-color--transparent:#B2D7EE;
}

[data-md-color-accent=teal]{
  --md-accent-fg-color:#154271 !important;
  --md-accent-fg-color--transparent:#E2EDDB;
}

[data-md-color-accent=deep-orange]{
  --md-accent-fg-color:154271 !important;
  --md-accent-fg-color--transparent:#FBEAD9;
}

[data-md-color-accent=blue]{
  --md-accent-fg-color:154271 !important;
  --md-accent-fg-color--transparent:#DCE3EA;
}

.mdx-badge {
  text-decoration: none; /* Optional: remove underline */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.mdx-badge:hover {
  background-color: #f1f1f1; /* Change background color on hover */
  color: #333; /* Change text color on hover */
  border-radius: 4px; /* Optional: add rounded corners */
}

.mdx-badge__icon:hover {
  transform: scale(1.1); /* Slightly scale the icon */
  transition: transform 0.3s; /* Smooth scaling */
}

.mdx-badge__text:hover {
  font-weight: bold; /* Make the text bold on hover */
}

/* Hide the stars */
li.md-source_fact.md-source_fact--stars {
  display: none;
}

/* Hide the forks */
li.md-source_fact.md-source_fact--forks {
  display: none;
}

li.md-source__fact.md-source__fact--version{
  color: #154271;
}

.md-typeset .admonition.tip, .md-typeset details.tip{
border-color: #B2D7EE;
font-size: 0.875rem !important;
}

.md-typeset .tip>.admonition-title, .md-typeset .tip>summary{
background-color: #B2D7EE;
font-size: 0.875rem !important;
}

.md-typeset .admonition, .md-typeset details{
  border: .075rem solid #B2D7EE;
  border-radius: .2rem;
  font-size: 0.875rem !important;
  color: #154271;
  display: flow-root;
  margin: 1.5625em 0;
  padding: 0 .6rem;
  page-break-inside: avoid;
}

.md-typeset .tip>.admonition-title:before, .md-typeset .tip>summary:before{
  background-color: #154271;
}

.md-typeset .md-button--primary{
  background-color: #154271;
  color: #FFFFFF;
  border-color: #154271;
  text-decoration: none;
}

.md-typeset .md-button--primary:hover{
  background-color: #01689B;
  color: #FFFFFF;
  border-color: #01689B;
  box-shadow: 0 0 8px 2px rgba(0,0,0,0);
  text-decoration: none;
}

.md-typeset .md-button--secondary {
  background-color: #ffffff;
  color: #154271;
  border: 1px solid #154271;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0);
}

.md-typeset .md-button--secondary:hover {
  background-color: #ffffff;
  color: #154271;
  border: 1px solid #154271;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 8px 2px rgba(21, 66, 113, 0.6);
}

.md-typeset .md-button--secondary .material-icons {
  vertical-align: middle;
  font-size: 16px;
}

:root {
  --md-admonition-icon--expander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 13.1l-6-6 1.5-1.5 4.5 4.5 4.5-4.5 1.5 1.5z'/%3E%3C/svg%3E");}

.md-typeset .admonition.expander,
.md-typeset details.expander {
  border-color: rgb(43, 155, 70, 0);
}
.md-typeset .expander > .admonition-title,
.md-typeset .expander > summary {
  background-color: rgba(43, 155, 70, 0);
  font-size: 1.1em; /* Adjust font size */
  color: #154271; /* Change text color */
  font-weight: 400;
  padding-top: 8px;
  text-decoration: underline;
}
.md-typeset .expander > .admonition-title::before,
.md-typeset .expander > summary::before {
  background-color: #154271;
  -webkit-mask-image: var(--md-admonition-icon--expander);
          mask-image: var(--md-admonition-icon--expander);
  margin-top: 0;
  margin-left: -3px;
  width: 16px;
  height: 16px;
}

.md-typeset .expander > .admonition-title::before,
.md-typeset .expander > summary::after {
  display:none;
}

.md-header__source a{
  text-decoration: none;
}

/* Homepage grid h2 styling */
.responsive-grid-2 h2,
.responsive-grid-3 h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  font-weight: 700 !important;
}

/* Responsive grid layouts */
@media (max-width: 600px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
  }
  
  .responsive-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 800px) and (min-width: 601px) {
  .responsive-grid-3 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* WCAG AA: Make images scalable for 320px viewport */
@media (max-width: 320px) {
  img, 
  .block-image,
  .md-header__button.md-logo img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
  }
  
  /* Ensure grid cards stack properly on very small screens */
  .grid.cards {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  /* Reduce padding for very small screens */
  .float-child,
  .float-child-white {
    min-height: auto !important;
    padding: 12px !important;
  }
}

/* Reduce spacing between p strong and p elements */
p strong {
  margin-bottom: 0.3em;
  display: block;
}

p strong + p,
p:has(strong) + p {
  margin-top: 0.3em;
}

/* Style search input placeholder */
input[type="text"]::placeholder {
  color: #154273;
  font-style: italic;
  font-size: 0.9rem;
  font-family: "ROsanswebtextregular", sans-serif;
}
