/* The topic pages. They borrow words/styles.css wholesale — the word table,
   the sentence list and the page frame are the same furniture — and add only
   what a page with an argument in it needs that a reference page does not.

   Hand-kept. The pages themselves are written by
   scripts/generate-topic-pages.mjs out of the syllabus. */

/* A topic page opens with three or four paragraphs rather than one, so the
   lede cannot stay at reference-page size or the whole screen is grey. */
.topic .lede {
  margin: 0 0 18px;
  font-size: 17.5px;
  color: var(--ink);
  max-width: 40em;
}
.topic .lede:last-of-type { margin-bottom: 34px; }
.topic .lede b {
  font-weight: 600;
  /* The Thai inside a paragraph is set at the paragraph's size, which is too
     small to make out the marks above and below the letters. */
}
.topic .lede [lang='th'],
.topic .lede b { font-size: 1.06em; }

.topic .unit h2,
.topic .near h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 0;
  padding-top: 0;
}
.topic .unit { margin: 0 0 34px; }

/* The one thing on the page that is neither prose nor a table: a note set
   apart, because it is the part a reader should still have tomorrow. */
.tip {
  margin: 8px 0 36px;
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.tip h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.tip p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

/* The line that sends a reader into the course. Quiet — it follows the thing
   they came for rather than interrupting it. */
.cta {
  margin: 0 0 34px;
  padding: 16px 18px;
  font-size: 16px;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cta a { color: var(--silk); font-weight: 600; text-underline-offset: 0.2em; }

.near { margin: 0 0 10px; }
.near ul { list-style: none; margin: 0; padding: 0; }
.near li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
}
.near a { color: var(--ink); text-underline-offset: 0.2em; }
.near a:hover { color: var(--silk); }

@media (max-width: 560px) {
  .topic .lede { font-size: 17px; }
}
