/* Tables on the Downloads page: stay inside the page, wrap long words, and stop the old all-bold cells.
   (New file so an old cached site.css cannot hide it.) */
main table { table-layout: fixed; width: 100%; }
main th, main td { overflow-wrap: anywhere; word-break: break-word; }
main th:nth-child(1), main td:nth-child(1) { width: 34%; }
main th:nth-child(2), main td:nth-child(2) { width: 22%; }
main td b { font-weight: 400; }
main td:first-child a, main td:first-child a b { font-weight: 700; }
@media (max-width: 44rem) {
  main table, main tbody, main tr, main td { display: block; width: 100%; box-sizing: border-box; }
  main thead { position: absolute; left: -9999px; }
  main tr { border-bottom: 2px solid var(--line, #d7d0bd); padding: .5rem 0; }
  main td { border: 0; padding: .15rem .6rem; }
  main td:empty { display: none; }
  main th:nth-child(n), main td:nth-child(n) { width: 100%; }
  main td:nth-child(2)::before { content: "Author: "; font-weight: 700; }
  main td:nth-child(3)::before { content: "About: "; font-weight: 700; }
}

/* "Jump to a section" menu at the top of the Downloads page */
.dl-menu { background: #f4f1e6; border: 2px solid #45543d; border-radius: 12px; padding: .2rem 1.3rem 1rem; margin: 1rem 0 1.5rem; }
.dl-menu h2 { margin-bottom: .2rem; }
.dl-menu ul { list-style: none; padding: 0; margin: .3rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.dl-menu li { max-width: none; }
.dl-menu h3 { margin: .9rem 0 .2rem; font-size: 1.05rem; color: #45543d; }
.dl-menu a { display: inline-block; padding: .4rem .8rem; border: 2px solid #45543d; border-radius: 999px; background: #fff; font-weight: 700; text-decoration: none; }
.dl-menu a:hover, .dl-menu a:focus { background: #45543d; color: #fff; }
.dl-menu li[hidden] { display: none; }
main [id^="dl-"] { scroll-margin-top: 1rem; }
.dl-top { font-size: .9rem; font-weight: 400; margin-left: .8rem; }
.dl-topline { margin: -.4rem 0 .6rem; }

/* Files added from the admin page, inside their category */
tr.dl-added td { background: #fffbe9; }
li.dl-added { margin: .5rem 0; }
