/* claude notes: the look of a dictionary entry's body (term, definition,
   further reading, contributor). Lifted out of public/dictionary_entry.html so
   the admin's live preview panel can load the very same rules; both pages
   render templates/public/_entry_body.html inside these classes.
   Page furniture (paper sheet, masthead, footer) stays in the public page. */

.entry-term {
  font-size: 32px;
  font-weight: bold;
  color: #A00000;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.entry-pos {
  font-style: italic;
  font-size: 14px;
  color: #888;
  margin: 0 0 20px;
}

.entry-image {
  float: right;
  margin: 0 0 16px 24px;
  max-width: 260px;
}
.entry-image img {
  width: 100%;
  display: block;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.entry-definition p {
  font-size: 15px;
  line-height: 1.8;
  color: #222;
  margin: 0 0 16px;
}
.entry-definition p:last-child {
  margin-bottom: 28px;
}

.entry-clearfix::after {
  content: '';
  display: block;
  clear: both;
}

.entry-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 28px 0;
}

.entry-further-reading h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  font-weight: bold;
  margin: 0 0 8px;
}
.entry-further-reading p {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  white-space: pre-line;
}

.entry-contributor {
  text-align: right;
  font-style: italic;
  font-size: 12px;
  color: #888;
  margin-top: 32px;
}

/* Maths. Before KaTeX runs (or if it never loads) the span still holds the raw
   TeX, so give it a monospace tell rather than letting it masquerade as prose.
   KaTeX replaces the contents on render, and .katex then takes over. */
.ds-math {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}
.ds-math .katex {
  font-family: KaTeX_Main, Times New Roman, serif;
  font-size: 1.08em;
}
/* A $$ display formula sits on its own line, centred, with a little air. */
.ds-math .katex-display {
  margin: 14px 0;
}
/* Long formulas scroll rather than stretching the sheet or the panel. */
.ds-math .katex-display > .katex {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
}
