html{
  font-size: 10pt;
  font-family: "BC Sans", sans-serif;
  scrollbar-gutter: stable;
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
}

a:visited {
  color: #800080;
}

.collapsible-global-toggle {
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  width: max-content;
  text-align: center;
  margin:0;
}

.collapsible-symbol {
  cursor: pointer;
  margin-right: 0.25rem;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s;
  cursor: pointer;
  font-size: 80%;
}

[aria-expanded="false"] .collapsible-symbol {
  transform: rotate(-90deg);
}

h3 .collapsible-symbol {
  text-indent: 0;
}

main.han-index-list {
  display: flex;
  flex-direction: column;
  width: 75rem;
  margin: 2rem auto;
}

main.han-index-list h2 {
  font-size: 1.8rem;
  cursor: pointer;
}

main.han-index-list h3 {
  font-size: 1.8rem;
  text-indent: -2rem;
  margin-left: 4rem;
  cursor: pointer;
}

main.han-index-list h3:first-of-type {
  margin-top: 0;
}


main.han-index-list td a[href] {
  font-weight: unset;
}

section:last-of-type {
  margin-bottom: 0;
}

section table {
  width: 100%;
  margin-left: 2rem;
  border-collapse: collapse;
}

section.parliament-section {
  margin-bottom: 3rem;
}

section.committee-section {
  margin-bottom: 3rem;
  margin-left: 4rem;
}

main.han-index-list section table tr th,
main.han-index-list section table tr td {
  padding: 1.5rem 1rem;
  font-size: 1.1rem;
  text-align: center;
}

main.han-index-list section table tbody tr:nth-child(even) {
  background-color: #f7f7f7;
}

main.han-index-list section table tbody tr:nth-child(odd) {
  background-color: #cccccc;
}

/* Column sizing for Committees */
section.committee-section table td:nth-child(1) {
  width: 9rem;
}

section.committee-section table td:nth-child(2) {
  width: 12rem;
}

section.committee-section table td:nth-child(3) {
  width: 26rem;
}

section.committee-section table td:nth-child(4) {
  width: 16rem;
}

section.parliament-section table {
  width: 100%;
  margin-left: 2rem;
  border-collapse: collapse;
}

section.parliament-section table tr:nth-child(odd) {
  background-color: #f7f7f7;
}

section.parliament-section table tr:nth-child(even) {
  background-color: #cccccc;
}

section.parliament-section table td{
  width: 7rem;
}
/*transcripts and video column*/
section.parliament-section table tbody tr td:nth-child(7) {
  width: 12rem;
}

/* Indexes */
section.parliament-section table.consolidated-index tbody tr td:nth-child(3) {
  width: unset;
}
/* Transcripts */
section.parliament-section table.consolidated-index tbody tr td:nth-child(4) {
  width: unset;
}


@media screen and (max-width: 1100px) {
  /* collapse indentation on small screens */
  main.han-index-list {
    width: 100%;
  }

  main.han-index-list h3 {
    margin-left: 2rem;
    text-indent: -2rem;
  }

  section.committee-section {
    margin-left: 0;
  }

  section.committee-section table {
    margin-left: 0;
  }

  section.committee-section table td {
    width: unset;
  }
  section.parliament-section table {
    margin-left: 0;
  }
}

/* Use aria-expanded instead of .collapsed class */
[aria-expanded="false"] + .parliament-section,
[aria-expanded="false"] + .committee-section {
  display: none;
}

[aria-expanded="false"] + .parliament-section + .committee-section {
  display: none;
}