@font-face {
  font-family: 'inputMonoCondensedMedium';
  src:url('../fonts/InputMonoCondensedMedium.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'inputSansCompressedRegular';
  src:url('../fonts/InputSansCompressedRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


/* light Macintosh vintage cream palette */
/*:root {
  --bg: #F4F1EC;
  --bg2: #E9E5DF;
  --fg: #2B2B2B;
  --fglight: #6C6C6C;
  --muted: #BEB7A8;
  --border: #C9C3B8;
  --border-hover: #A69E91;
  --accent: #9E885C;
  --accent-veil: rgba(158, 136, 92, 0.25);
}*/


/* Light mode by default */
:root {
  color-scheme: light dark; /* improves native widgets */
  --bg: #ECECEC;
  --bg2: #F7F7F7;
  --fg: #1C1C1C;
  --fglight: #5E5E5E;
  --muted: #A9A9A9;
  --border: #BEBEBE;
  --border-hover: #9E9E9E;
  --accent: #3A6EA5;
  --accent-veil: rgba(58,110,165,.22);
}

/* Dark mode if system preference is dark */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --bg2: #1F1F1F;
    --fg: #EDEDED;
    --fglight: #A6A6A6;
    --muted: #6F6F6F;
    --border: #3A3A3A;
    --border-hover: #505050;
    --accent: #32DC7F;
    --accent-veil: rgba(50,220,127,.25);
  }
}

/* Force explicitly (if the user chooses) */
html[data-theme="light"] {
  --bg: #ECECEC;
  --bg2: #F7F7F7;
  --fg: #1C1C1C;
  --fglight: #5E5E5E;
  --muted: #A9A9A9;
  --border: #BEBEBE;
  --border-hover: #9E9E9E;
  --accent: #3A6EA5;
  --accent-veil: rgba(58,110,165,.22);
}
html[data-theme="dark"] {
  --bg: #161616;
  --bg2: #1F1F1F;
  --fg: #EDEDED;
  --fglight: #A6A6A6;
  --muted: #6F6F6F;
  --border: #3A3A3A;
  --border-hover: #505050;
  --accent: #32DC7F;
  --accent-veil: rgba(50,220,127,.25);
}





body {
/*  font-family: "Brill", serif;*/
  font-family: "inputSansCompressedRegular", sans-serif;
  margin: 0;
  padding: 0;
  font-size: 0.95em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
}

/* Main content styles */
main.content {
  max-width: 900px;
  background-color: var(--bg);
  padding: 20px;
  margin-bottom: 20px;
}

/* Main content styles */
main.contributors-content {
  max-width: 900px;
  background-color: var(--bg);
  padding: 20px;
  margin-bottom: 20px;
}

h1 {
  font-family: "inputMonoCondensedMedium", sans-serif;
  font-size: 1.5em; /* Set the font size to match the body font size */
  font-weight: bold;
  background-color: none; /* Background color for the title */
  color: var(--fg);
  padding-left: 10px;
/*  border-radius: 5px 5px 0 0;*/
/*  margin-bottom: 0;*/
  margin: 10;
}

h2 {
  font-family: "inputSansCompressedRegular", sans-serif;
  font-size: 1.2em; /* Set the font size to match the body font size */
  font-weight: normal;
  background-color: none; /* Background color for the title */
  color: var(--fg);
  padding-left: 10px;
/*  border-radius: 5px 5px 0 0;*/
/*  margin-bottom: 0;*/
  margin: 10;
}

h3 {
  font-family: "inputSansCompressedRegular", sans-serif;
  font-size: 1em; /* Set the font size to match the body font size */
  font-weight: bold;
  background-color: var(--bg); /* Background color for the title */
  color: var(--fg);
  padding: 10px;
  border-radius: 5px 5px 0 0; /* Rounded border for the title */
  margin-bottom: 0;
}

p {
  margin: 10;
  padding-left: 10px;
  color: var(--fg);
  max-width: 900px;
}

/* Link styles */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}


table {
  width: 100%;
  border-collapse: collapse;
  font-family: "inputSansCompressedRegular", sans-serif;
}


























/* Centered banner above the columns */
.table-tools {
  caption-side: top;
  padding: 0.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* Search bar */
.search-bar {
  position: relative;
  display: inline-flex;       /* inline to be centered via text-align */
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  width: min(100%, 26rem);    /* max 26rem, otherwise 100% if narrower */
  box-sizing: border-box;     /* include borders/padding in width */
  overflow: hidden;
  margin-inline: auto;        /* extra safety for centering */
}

@supports not (width: min(100%, 26rem)) {
  .search-bar {
    display: inline-flex;
    max-width: 26rem;
    width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
  }
}

/* Magnifying-glass icon on the left */
.search-icon {
  position: absolute;
  left: 0.8rem;
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  pointer-events: none;
}

/* Input field */
.search-bar input[type="search"] {
  flex: 1;
  padding: 0.6rem 2.2rem 0.6rem 2rem;
  background: transparent;
  color: var(--fg);
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.search-bar input[type="search"]::placeholder {
  color: var(--muted);
}


/* Focus and accent */
.search-bar input[type="search"]:focus {
  background: var(--bg2);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.search-bar:focus-within .search-icon {
  color: var(--accent);
}



input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  right: 0.7rem;
  height: 1rem; width: 1rem; cursor: pointer;
  background: currentColor;
  color: var(--muted); /* cross tint */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6 L18 18 M6 18 L18 6' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>") center/1rem 1rem no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6 L18 18 M6 18 L18 6' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>") center/1rem 1rem no-repeat;
}
input[type="search"]::-webkit-search-cancel-button:hover { color: var(--accent); }




























th, td {
  padding: 0;
  text-align: left;
  border-bottom: 0px solid var(--muted);
}

th {
  padding-left: 10px;
  padding-right: 10px;
  height: 46px;
  font-weight: bold;
  border-bottom: 0px solid var(--muted);
  border-top: 1px solid var(--muted);
  background-color: var(--bg); /*#00905199;*/ /*#01199388;*/
  color: var(--accent);
}

td {
  padding: 10px;
}

thead {
  position: sticky;
  top: 0;
  /*z-index: 1;*/
  background-color: var(--bg);
}

/*tr.content {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0;
}*/

tr {
  cursor: pointer;
  background-color: var(--bg);
  border-top: 1px solid var(--muted);
  border-bottom: 0px solid var(--muted);
  padding: 0;
  z-index: 1;
}

/*.table-row-odd, .table-row-odd:hover {
  background-color: #fff !important;
}*/

/*.hide {
  display: none !important;
  background-color: var(--bg);
}

.hidden-row {
  background-color: var(--bg);
  border: none !important;
}

tr.hidden-row td {
  border: none !important;
}*/




/* make rows visually clickable */
tbody tr[data-id] { cursor: pointer; }
tbody tr[data-id]:hover { background: rgba(255,255,255,0.14); }
/*tbody tr[data-id]:focus { outline: 2px solid var(--accent); outline-offset: -2px; }*/








/*.mechanistic-model {
    background-color: #0054C855;
}
.statistical-model {
    background-color: #D2326455;
}
.mechastatmod-default {
    background-color: #e9e9e9;
}*/


.openaccess {
    background-color: none;
    color: var(--fg);
}
.notopenaccess {
    background-color: none;
    color: var(--fglight);
}


/*.realdata {
    background-color: #D2326455;
}
.syntheticdata {
    background-color: #e9e9e9;
}*/




















header {
/*  background-color: #333;
  color: #fff;
  padding: 10px 0;
  text-align: center;*/
}
/* ===== bar layout structure ===== */
nav {
  font-family: "inputMonoCondensedMedium", sans-serif;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px;

  /* key: set nav to flex with two children: <ul> and the button */
  display: flex;
  align-items: center;
  justify-content: space-between; /* ul on the left, button on the right */
  gap: 12px;
}

/* horizontal list on wide screens */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;     /* allows wrapping if there are many links */
  gap: 0 30px;         /* horizontal spacing between items (equivalent to your margin-right) */
}

nav ul li {
  /* no longer use display:inline; let flex handle it */
}

nav ul li a {
  padding-right: 10px;
  text-decoration: none;
  font-size: 1.25em;
  font-weight: bold;
  color: var(--fg);
}

nav ul li:first-child a {
  color: var(--accent);
}






/* container button (kept from your previous style) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg2); color: var(--fglight);
  cursor: pointer; transition: background .3s ease, border-color .3s ease;
}
.theme-toggle:hover, .theme-toggle:focus-visible {
  color: var(--fg); border-color: var(--border-hover); outline: none;
}

/* keep the icon centered */
.theme-toggle__icon { display: inline-flex; position: relative; }


/* core moon/sun circle */
.darkmode_icon{
  position: relative; width: 16px; height: 16px; border-radius: 50%;
  background: currentColor; transform-origin: center;
  transition: transform .6s ease-in-out;
}

/* the ‘mask’ that cuts the crescent out of the moon */
.darkmode_icon::after{
  content: ""; position: absolute; width: 13px; height: 13px;
  left: 6px; bottom: 3px; border-radius: 50%;
  background: var(--bg2); /* matches page background */
  transform-origin: center;
  transition: transform .4s ease, left .25s ease;
}

/* eight sun rays, initially hidden under the moon */
.darkmode_icon .ray{
  position: absolute; left: 5.5px; top: 5.5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; transform-origin: center;
  transition: transform .4s ease-in-out;
}

/* initial ray angles (compact) */
.darkmode_icon .ray:nth-child(1){ transform: rotate(45deg)  translateX(0); }
.darkmode_icon .ray:nth-child(2){ transform: rotate(90deg)  translateX(0); }
.darkmode_icon .ray:nth-child(3){ transform: rotate(135deg) translateX(0); }
.darkmode_icon .ray:nth-child(4){ transform: rotate(180deg) translateX(0); }
.darkmode_icon .ray:nth-child(5){ transform: rotate(225deg) translateX(0); }
.darkmode_icon .ray:nth-child(6){ transform: rotate(270deg) translateX(0); }
.darkmode_icon .ray:nth-child(7){ transform: rotate(315deg) translateX(0); }
.darkmode_icon .ray:nth-child(8){ transform: rotate(360deg) translateX(0); }

/* when dark is active, morph to a sun:
   - shrink center a bit
   - hide/move the crescent mask
   - push rays outward equally */
html[data-theme="dark"] .darkmode_icon{ transform: scale(.6); }
html[data-theme="dark"] .darkmode_icon::after{
  left: 12px; bottom: 6px; transform: scale(0);
}
html[data-theme="dark"] .darkmode_icon .ray:nth-child(1){ transform: rotate(45deg)  translateX(-13px); }
html[data-theme="dark"] .darkmode_icon .ray:nth-child(2){ transform: rotate(90deg)  translateX(-13px); }
html[data-theme="dark"] .darkmode_icon .ray:nth-child(3){ transform: rotate(135deg) translateX(-13px); }
html[data-theme="dark"] .darkmode_icon .ray:nth-child(4){ transform: rotate(180deg) translateX(-13px); }
html[data-theme="dark"] .darkmode_icon .ray:nth-child(5){ transform: rotate(225deg) translateX(-13px); }
html[data-theme="dark"] .darkmode_icon .ray:nth-child(6){ transform: rotate(270deg) translateX(-13px); }
html[data-theme="dark"] .darkmode_icon .ray:nth-child(7){ transform: rotate(315deg) translateX(-13px); }
html[data-theme="dark"] .darkmode_icon .ray:nth-child(8){ transform: rotate(360deg) translateX(-13px); }







/* ===== breakpoint: single column aligned left ===== */
/* tweak 768px/800px per your design */
@media (max-width: 800px) {
  nav {
    flex-direction: column;     /* stack everything vertically */
    align-items: flex-start;    /* left-aligned */
  }

  nav ul {
    flex-direction: column;     /* links in a column */
    gap: 10px;                  /* vertical spacing between links */
  }

  /* if you want the button ABOVE the links, uncomment:
  .theme-toggle { order: -1; }
  */
}









/* Style for the multi-column list */
ul.multi-column-list {
    column-width: 200px;
    column-gap: 1em;
/*    column-fill: auto;*/
}



























footer {
/*  background-color: #f1f1f1;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;*/
  margin-top: auto;
}

.information-row {
  font-family: "inputMonoCondensedMedium", sans-serif;
  margin-top: auto;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 10px;
/*  padding-left: 10px;*/
}

.information-row ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.information-row ul li {
  display: inline;
}

.information-row ul li a {
  padding-right: 10px;
  text-decoration: none;
  font-size: 1.0em;
  font-weight: bold;
  background-color: none;
  color: var(--fg);
}







/* Responsive design */
@media (max-width: 768px) {
  nav ul li {
    display: block;
    margin-bottom: 10px;
  }

  main.content {
    padding: 10px;
  }
}

canvas { position:fixed; top:0; left:0; z-index:-1; }










/* Global semi-transparent overlay covering the entire window */
.drawer {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* When open */
.drawer[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* Content panel (right half) */
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;                 /* stick the panel to the right edge */
  width: min(95%, 800px);   /* 95% if smaller than 800px, otherwise 800px max */
  height: 100vh;
  background: var(--bg);         /* dark background */
  color: var(--fg);
  overflow-y: auto;
  transform: translateX(100%); /* starts off-screen */
  transition: transform 0.35s ease;
  /*box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);*/
  padding: 1.5rem;
  box-sizing: border-box;   /* include padding in width */
}


/* When the drawer is visible */
.drawer[aria-hidden="false"] .drawer-panel {
  transform: translateX(0);
}

/* Close button */
.drawer-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.5rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.drawer-close:hover {
  color: var(--accent-veil);
}






.drawer[aria-hidden="false"] {
  backdrop-filter: blur(2px);
}

.drawer {
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}


































/* === Popup window === */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Central box */
.popup-content {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  padding: 2rem 2.5rem 1.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  text-align: left;
  animation: popup-slide 0.4s ease;
}

@keyframes popup-slide {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Close button ("×") */
.popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 1.6rem;
  color: var(--fg);             /* same color as the text */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: var(--accent);          /* accent on hover */
}







.logo-dark,
.logo-light {
  width: 150px;              /* adjust to your design */
  height: auto;
  display: block;
}

/* by default (light) */
.logo-light { display: inline-block; }
.logo-dark  { display: none; }

/* system dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark  { display: inline-block; }
}

/* forced by user choice */
html[data-theme="light"] .logo-light { display: inline-block; }
html[data-theme="light"] .logo-dark  { display: none; }
html[data-theme="dark"]  .logo-light { display: none; }
html[data-theme="dark"]  .logo-dark  { display: inline-block; }


