body {
  font-family: "Segoe UI", sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 0;
}

button, input, select {
  font-family: "Segoe UI", sans-serif;
}

header {
  background: #212529;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

#dirNames {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.dir-name {
  font-family: monospace;
  background-color: #495057;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.dir-name.active {
  background-color: #7c8a97;
}

#searchBox,
#sortOrder {
  margin: 10px 5px;
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  outline: none;
}

#searchBox {
  width: 60%;
  max-width: 300px;
}

#sortOrder {
  background: #ffffff;
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

#loader {
  text-align: center;
  font-size: 1.2em;
  color: #555;
}

.hidden {
  display: none;
}

.team-section {
  margin-bottom: 40px;
}

.team-section > h2.team-header {
  position: sticky;
  top: 0px;
  background-color: #495057;
  color: white;
  padding: 12px;
  border-radius: 5px;
  z-index: 99; /* so that the team heading appears OVER the meeting entry */
}

.meeting-entry {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.meeting-entry .header {
  background: white;
  padding: 8px 4px;
  position: sticky;
  top: 56px; /* 56px is the exact height of Team Header, hence meeting-entry's header appears exactly below it */
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meeting-entry .content {
  margin-top: 10px;
  display: none;
}

.meeting-entry.open .content {
  display: block;
}

/* === MARKDOWN STUFF === */

/* Inline code */
.content :not(pre) code {
  color: rgb(179, 122, 0);
  font-family: 'Cascadia Code', Consolas, monospace;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Code block */
.content pre {
  display: block;
  font-family: 'Cascadia Code', Consolas, monospace;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 8px;
  border-radius: 5px;
  border: 1px solid gray;
}
.content pre code {
  font-family: 'Cascadia Code', Consolas, monospace;
}

/* Table */
.content table {
  border-collapse: collapse;
}
.content table th,
.content table td {
  border: 1px solid gray;
  padding: 8px 12px;
}
.content table th {
  background-color: rgba(0, 0, 0, 0.05);
  font-weight: bold;
}
.content table tr:nth-child(even) { /* banding of rows */
  background-color: rgba(0, 0, 0, 0.05);
}

/* Blockquotes */
blockquote {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 4px solid gray;
}
