/* Styles specific to the qualifier-exam notes. Loaded after ../style.css. */

.crumbs {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}
.crumbs a { border-bottom: none; }
.crumbs a:hover { border-bottom: 1px solid #7a1c2b; }

h1 {
  font-size: 28px;
  margin-bottom: 6px;
}
.subtitle {
  color: #555;
  margin-bottom: 24px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e5e5;
}
h3 {
  font-size: 17px;
  margin: 18px 0 6px;
}

ul, ol {
  padding-left: 22px;
  margin: 0 0 12px;
}
li { margin-bottom: 4px; }
li ul, li ol { margin: 4px 0 4px; }

figure {
  margin: 16px auto 24px;
  text-align: center;
}
figure img {
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  max-width: min(100%, 620px);
  height: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
figure.wide img { max-width: 100%; }
figure.small img { max-width: min(100%, 420px); }
figure.pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
figure.pair img {
  flex: 1 1 260px;
  max-width: calc(50% - 6px);
  margin: 0;
}
figure.pair figcaption { flex-basis: 100%; }
figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}
figcaption a { color: #7a1c2b; }
@media (max-width: 600px) {
  figure.pair img { max-width: 100%; }
}

code {
  font-family: Menlo, Consolas, monospace;
  font-size: 15px;
  background: #f4f4f4;
  padding: 0 4px;
}

table.notes {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 16px;
  font-size: 16px;
}
table.notes th, table.notes td {
  border: 1px solid #ddd;
  padding: 5px 8px;
  vertical-align: top;
  text-align: left;
}
table.notes th { background: #f6f6f6; font-weight: bold; }

.answer { margin: 4px 0 14px; }
.answer b { color: #7a1c2b; }

.topics {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-size: 15px;
  color: #555;
}
.topics a { border-bottom: none; }
.topics a:hover { border-bottom: 1px solid #7a1c2b; }
