/* css styles */
a {
  text-decoration: none;
}

/* Ensure Quarto tables scroll instead of overlap */
.scroll-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;      /* allow horizontal scrolling */
  margin-bottom: 1rem;   /* space so links below are clickable */
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 0;
} /*overflow-y: visible;*/   /* don’t cover content below */

:target {
  background-color: #fff8d6;
  border-left: 10px solid #ffc107;
  padding: 0;
  display: inline-block;
  animation: clearHighlight 5s ease forwards;
}

@keyframes clearHighlight {
  0%   { background-color: #fff8d6; border-left: 10px solid #ffc107; }
  100% { background-color: transparent; border-left: none; box-shadow: inset 0 0 0 transparent; padding-left: 0;}
}

table.table td, table.table th {
  white-space: normal !important;
}

.grid {
  gap: 0em !important;  /* Try 0.5em, 0.25em, or 0 for even tighter */
}

.grid img {
  border: 1px solid #000;
  border-radius: 0px;
  box-sizing: border-box;
}

.module {
    font-size: 18px;
    background: #fffec8;
    /* color: white; */
  }

  .table-primary {
    background: rgb(194, 195, 196);
    /* color: white; */
  }

  .table-warning {
    background: rgb(247, 226, 214);
    /* color: white; */
  }

   .table-note {
    background: rgb(214, 228, 247);
    /* color: white; */
  }

   .table-important {
    background: rgb(247, 214, 214);
    /* color: white; */
  }

/* Fix the table so that it is readable in smaller settings */
@media 
only screen and (max-width: 600px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

  /* Force table to not be like tables anymore */
  table, thead, tbody, th, td, tr { 
    display: block; 
  }
  
  /* Hide table headers (but not display: none;, for accessibility) */
  thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  /*tr { border: 1px solid #ccc; }*/
  
  td { 
    /* Behave  like a "row" */
    border: none;
    /*border-bottom: 1px solid #eee; */
    position: relative;
    padding-left: 50%; 
  }
  
  .weeknum {
    font-weight: bold;
  }

  td:before { 
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 45%; 
    padding-right: 10px; 
    white-space: nowrap;
  }

}