/* The technical note (simulation-note.html): a typeset paper on the dark Simulation page. */
@font-face { font-family: "LM Roman"; src: local("Latin Modern Roman"), local("LMRoman10-Regular"), url("../fonts/lm-roman-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "LM Roman"; src: local("LMRoman10-Italic"), url("../fonts/lm-roman-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "LM Roman"; src: local("LMRoman10-Bold"), url("../fonts/lm-roman-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "LM Math"; src: local("Latin Modern Math"), url("../fonts/lm-math.woff2") format("woff2"); font-display: swap; }

.note-main { padding: clamp(108px, 12vw, 150px) 0 clamp(64px, 9vw, 120px); }
.note-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: 880px; margin: 0 auto 16px; font-size: 15px; color: var(--soft); }
.note-bar a { color: var(--soft); text-decoration: none; transition: color .3s; }
.note-bar a:hover { color: var(--ink); }
.note-bar > a::before { content: "←"; margin-right: 8px; }

.note { --p-ink: #151513; --p-soft: #55534d; --p-rule: #151513;
  max-width: 880px; margin: 0 auto; padding: clamp(30px, 8vw, 104px) clamp(20px, 9vw, 112px) clamp(36px, 8vw, 96px); box-sizing: border-box;
  background: #f8f5ed; color: var(--p-ink); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 70px 180px -70px rgba(108, 192, 142, 0.4);
  font: 400 18.5px/1.52 "LM Roman", "Latin Modern Roman", "CMU Serif", "STIX Two Text", Cambria, "Times New Roman", serif; letter-spacing: 0;
  text-align: justify; hyphens: auto; -webkit-hyphens: auto; font-kerning: normal; }
.note ::selection { background: #cfe6d6; }
.note p { margin: 0 0 0.72em; max-width: none; color: inherit; font-size: inherit; }
.note a { color: inherit; }
.note math { font-family: "LM Math", "Latin Modern Math", "STIX Two Math", "Cambria Math", math; font-size: 1em; }
.note em { font-style: italic; }
.note .nb { white-space: nowrap; }

.note__head { text-align: center; margin-bottom: 2.1em; hyphens: manual; }
.note__head h1 { margin: 0.5em 0 0.2em; font: 400 clamp(26px, 4.4vw, 35px)/1.18 "LM Roman", "Latin Modern Roman", "STIX Two Text", Cambria, serif; letter-spacing: 0; color: inherit; text-wrap: balance; }
.note__head .note__sub { font-size: 1.16em; margin-bottom: 1.3em; }
.note__head .note__by { font-size: 1.08em; margin-bottom: 0.15em; }
.note__head .note__doc { color: var(--p-soft); font-size: 0.92em; margin: 0; }

.note__abs { margin: 0 auto 2.2em; max-width: 86%; font-size: 0.93em; }
.note .note__abs h2 { margin: 0 0 0.5em; text-align: center; font: 700 1em/1.3 "LM Roman", "Latin Modern Roman", serif; letter-spacing: 0; color: inherit; }

.note section > h2 { margin: 1.9em 0 0.75em; font: 700 1.3em/1.25 "LM Roman", "Latin Modern Roman", "STIX Two Text", Cambria, serif; letter-spacing: 0; color: inherit; text-align: left; hyphens: manual; }
.note section > h2 span { margin-right: 0.75em; }

.note__table { margin: 0 auto 2.4em; border-collapse: collapse; font-size: 0.9em; text-align: left; hyphens: manual; }
.note__table caption { caption-side: top; padding-bottom: 0.6em; text-align: center; }
.note__table caption b { margin-right: 0.5em; }
.note__table th, .note__table td { padding: 0.24em 1.1em 0.24em 0; font-weight: 400; vertical-align: baseline; border: 0; }
.note__table th:last-child, .note__table td:last-child { padding-right: 0; }
.note__table thead th { border-top: 1.6px solid var(--p-rule); border-bottom: 0.9px solid var(--p-rule); padding-top: 0.36em; padding-bottom: 0.36em; }
.note__table tbody tr:last-child td { border-bottom: 1.6px solid var(--p-rule); padding-bottom: 0.4em; }
.note__table tbody tr:first-child td { padding-top: 0.4em; }

.thm { margin: 1.05em 0; }
.thm > p:last-child { margin-bottom: 0; }
.thm__h { font-style: normal; font-weight: 700; margin-right: 0.45em; }
.thm--prop, .thm--lemma { font-style: italic; }
.thm--prop em, .thm--lemma em { font-style: normal; }
.thm--proof .thm__h { font-style: italic; font-weight: 400; }
.qed { float: right; width: 0.6em; height: 0.6em; margin: 0.5em 0 0 0.8em; border: 1px solid currentColor; }

.eqn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0.95em 0; font-style: normal; text-align: left; }
.eqn__m { overflow-x: auto; overflow-y: hidden; padding: 4px 0; scrollbar-width: none; }
.eqn__m::-webkit-scrollbar { display: none; }
.eqn span { font-variant-numeric: lining-nums; }

.note__refs ol { margin: 0; padding: 0; list-style: none; counter-reset: ref; font-size: 0.92em; text-align: left; hyphens: manual; }
.note__refs li { counter-increment: ref; position: relative; padding-left: 2.3em; margin-bottom: 0.4em; }
.note__refs li::before { content: "[" counter(ref) "]"; position: absolute; left: 0; }

@media (max-width: 700px) {
  .note { font-size: 16.5px; text-align: left; border-radius: 0; margin: 0 calc(-1 * var(--gutter, 18px)); }
  .note__abs { max-width: none; }
  .note__table { font-size: 0.8em; }
  .note__table th, .note__table td { padding-right: 0.6em; }
  .eqn { gap: 8px; }
  .eqn__m math { font-size: 0.9em; }
}
@media print {
  body.note-page { background: #fff; }
  .note-page .nav, .note-page .foot, .note-page .cookies, .note-bar, .skip { display: none !important; }
  .note-main { padding: 0; }
  .note { max-width: none; padding: 0; background: #fff; box-shadow: none; font-size: 11pt; }
  .thm, .eqn, .note__table { break-inside: avoid; }
}

/* The page is a preview: the sheet lists what the full note goes on to cover, then dissolves into the page */
.note--preview { padding-bottom: clamp(150px, 20vw, 230px);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - clamp(130px, 18vw, 210px)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - clamp(130px, 18vw, 210px)), transparent); }
.note__more { margin-top: 2.4em; padding-top: 1.2em; border-top: 0.9px solid var(--p-rule); text-align: left; hyphens: manual; }
.note__more p { color: var(--p-soft); font-style: italic; margin-bottom: 0.7em; }
.note__more ol { margin: 0; padding: 0; list-style: none; font-weight: 700; font-size: 1.08em; }
.note__more li { margin-bottom: 0.32em; padding-left: 1.9em; text-indent: -1.9em; }
.note__more li span { display: inline-block; min-width: 1.9em; text-indent: 0; }
.note__more li:last-child { text-indent: 0; }
.note-cta { position: relative; max-width: 880px; margin: clamp(-90px, -9vw, -50px) auto 0; text-align: center; display: grid; justify-items: center; gap: 18px; }
.note-cta .t-section { max-width: 12em; }
.note-cta .lede { max-width: 30em; margin: 0; }
.note-cta .ctas { justify-content: center; margin-top: 6px; }
@media print { .note--preview { -webkit-mask-image: none; mask-image: none; } .note-cta { display: none; } }
