/* <------ General ------> */

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

@font-face {
  font-family: Digiset;
  src: url(DigisetVF.ttf);
}

body {
  font-family: "Digiset";
  font-weight: 500;
  font-size: 1rem;
  font-feature-settings: "ss01";
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  padding: 1rem;
}

a {
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: font-weight 0.2s ease;
}

a:hover {
  font-weight: 700;
}

a.visited::after {
  content: " ✿";
  font-weight: 500;
}

/* Table Layout */

.table-wrap {
  width: 100%;
  margin: 0 auto;
  padding-top: 40vh;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table.sortable {
  table-layout: fixed;
}

/* Column widths */
 
.year {
  width: 10ch;
}
/*
.credits {
  width: 15ch;
}

td.notes {
  max-width: 5ch;
} */

/* Borders & spacing */

table thead th {
  padding: 0 0 1rem;
}

table thead tr {
  border-bottom: 0.5px solid black;
}

table.sortable tbody td {
  border-bottom: 0.5px solid black;
  padding: 0.5rem 0;
  vertical-align: top;
}

/* Sorting buttons */

table.sortable th button {
  display: inline;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

table.sortable th.cms,
table.sortable td.cms,
table.sortable th.credits,
table.sortable td.credits {
  padding-left: 10px;
}

/* Sorting indicators */

table.sortable th[aria-sort="ascending"] span::after,
table.sortable th[aria-sort="descending"] span::after {
  position: relative;
  font-family: Digiset;
  font-weight: 500;
  color: currentColor;
  font-size: 100%;
  /* top: -0.2rem; */
}

table.sortable th[aria-sort="ascending"] span::after {
  content: "↑";
}

table.sortable th[aria-sort="descending"] span::after {
  content: "↓";
}

/* Text Styling */

caption {
  text-align: left;
  margin-bottom: 2rem;
}

table.sortable th button {
  font-size: 100%;
  font-weight: bold;
  text-align: left;
}

td.notes {
  font-size: 0.8rem;
}

/* Links */

table.sortable tbody td a {
  text-decoration: underline solid 0.5px;
  text-decoration-skip-ink: none;
}

table.sortable tbody td:not(.link) a {
  color: black;
  text-decoration-color: black;
}

/* CMS Colors */

table.sortable tbody td.other {
  background-color: #f8f8f8;
}

table.sortable tbody td.cms.kirby {
  background-color: #eae9e9;
}

table.sortable tbody td.cms.wordpress {
  background-color: #d7d7d7;
}

/* <------ Mobile ------> */

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  .table-wrap {
    width: 100%;
    padding: 0rem;
      padding-top: 35vh;

  }

  table.sortable thead {
    display: none;
    /* labels move inline via data-label */
  }

  table.sortable,
  table.sortable tbody,
  table.sortable tr,
  table.sortable td {
    display: block;
    width: 100%;
  }

  table.sortable tbody td {
  padding: 0.1rem 0 !important;
  background: transparent !important;
}

table.sortable tbody td.cms::before {
  background: transparent;
}

  table.sortable tbody tr {
    /* margin-bottom: 1rem; */
    border-bottom: 0.5px solid black;
    padding: 2rem 0 2rem 0;
  }

  table.sortable tbody td {
    border-bottom: none;
    padding: 0.3rem 0;
    display: flex;
    gap: 0.75rem;
  }

  table.sortable tbody td::before {
    content: attr(data-label);
    font-weight: 500;
    flex: 0 0 40%;
  }

  /* reset desktop-only width constraints */
  td.notes,
  .year,
  .credits {
    max-width: none;
    width: auto;
  }

  table.sortable td.notes:empty {
  display: none;
}

/* 
  td.notes {
    font-size: 0.85rem;
  } */
}