/* Catodoro - the reference pages (Features, FAQ).

   Deliberately plain. The page scale and headings live in page.css; this is
   only the few pieces of furniture those two pages need. No cards, no rules,
   no boxes - one measure, one type scale, and space doing the separating. */

.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}

.doc-list li {
  position: relative;
  padding-left: 22px;
}

.doc-list li + li { margin-top: 12px; }

/* A paw-ish dot rather than a bullet glyph, so the marker sits on the cap
   height of the first line instead of the baseline. */
.doc-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* Same weight as the line it opens - only the colour marks it out. */
.doc-list b { font-weight: 700; color: var(--text-em); }

/* ---------- On this page ----------

   A plain numbered list, set at the body size. The page is a reference, so
   the fastest thing it can offer is a list of what is in it - anything more
   decorated would read as content rather than as a way past it. */

.toc {
  margin: 40px 0 0;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(30, 8, 8, 0.09);
  border-bottom: 1px solid rgba(30, 8, 8, 0.09);
}

.toc-head {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-soft);
}

.toc-list {
  margin: 0;
  padding: 0 0 0 1.35em;
  columns: 2;
  column-gap: 40px;
  font-size: 16px;
  /* A list of destinations, not prose - it takes the label weight. */
  font-weight: 700;
}

/* Without this the two-column list splits an entry down the middle - half a
   heading at the foot of one column, the rest at the head of the next. */
.toc-list li { margin: 0 0 7px; break-inside: avoid; }
.toc-list li::marker { color: var(--text-soft); font-weight: 700; }

.toc-list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.16s ease;
}

.toc-list a:hover { color: var(--red); }

/* Cleared by the sticky navbar when jumped to */
.doc-section { scroll-margin-top: 108px; }

/* In the sidebar it needs no rules to fence it off - the column does that -
   and one column, since it is 208px wide. Sticks below the navbar. */
.doc-toc .toc {
  position: sticky;
  top: 108px;
  /* Matches .doc-section's own top margin, so the list starts on the same
     line as the first heading beside it. */
  margin: 56px 0 0;
  padding: 0;
  border: 0;
}

.doc-toc .toc-list { columns: 1; font-size: 15px; }
.doc-toc .toc-list li { margin-bottom: 10px; }

@media (max-width: 1020px) {
  .doc-toc .toc {
    position: static;
    margin: 40px 0 0;
    padding: 22px 0 24px;
    border-top: 1px solid rgba(30, 8, 8, 0.09);
    border-bottom: 1px solid rgba(30, 8, 8, 0.09);
  }
  .doc-toc .toc-list { columns: 2; font-size: 16px; }
}

/* Two columns of a phone's width leaves each about 18 characters wide, so
   every entry wraps. One column below this. */
@media (max-width: 620px) {
  .doc-toc .toc-list { columns: 1; }
}

/* ---------- Keys ---------- */

.keys {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.keys th,
.keys td {
  padding: 11px 0;
  text-align: left;
  vertical-align: baseline;
  border-top: 1px solid rgba(30, 8, 8, 0.09);
}

.keys th {
  width: 34%;
  padding-right: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.keys th { font-weight: 700; color: var(--text-em); }
.keys td { font-weight: 500; color: var(--text); }

/* ---------- Questions ---------- */

.qa {
  padding: 20px 0;
  border-top: 1px solid rgba(30, 8, 8, 0.09);
}

.qa:last-child { border-bottom: 1px solid rgba(30, 8, 8, 0.09); }

.qa summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.2px;
  list-style: none;
  color: var(--text-em);
}

.qa summary::-webkit-details-marker { display: none; }

/* Our own marker, so it turns with the disclosure */
.qa summary::after {
  content: '+';
  float: right;
  margin-left: 16px;
  color: var(--red);
}

.qa[open] summary::after { content: '\2013'; }
.qa summary:hover { color: var(--red); }

.qa p {
  max-width: 34em;
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 640px) {
  .doc-title { font-size: 40px; }
  .doc-lede { font-size: 17px; }
  .keys th { width: auto; }
  .keys tr { display: block; padding: 11px 0; border-top: 1px solid rgba(30, 8, 8, 0.09); }
  .keys th,
  .keys td { display: block; padding: 0; border: 0; }
  .keys td { margin-top: 6px; }
}
