/* The thesis: a numbered paper, not a landing page. Plain document titling; section headings stand beside one
   reading column; rules, not boxes; formulas in italic Newsreader after the dividend rule's house style; figures
   are engraved line work drawn from the formulas, with their labels kept in HTML so they stay readable at any
   width. No script. */
.thesis-page{padding-top:26px;padding-bottom:40px}

/* Front matter: a plain document title, then the abstract and contents set like any other section. */
.thesis-front{padding:var(--space-8) 0 var(--space-5)}
.thesis-front .overline{color:var(--muted);margin-bottom:18px}
.thesis-front h1{font:400 44px/1.1 var(--display);letter-spacing:-1px}
.thesis-contents{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--rule)}
.thesis-contents li{display:flex;gap:18px;align-items:baseline;border-top:1px solid var(--rule);padding:11px 0;font-size:15px}
.thesis-contents li:first-child{border-top:0;padding-top:4px}
.thesis-contents li span{font:400 11px/1.5 var(--mono);letter-spacing:.04em;color:var(--muted)}

/* A section: its heading on the left, the reading column on the right. */
.thesis-section{border-top:1px solid var(--rule);margin-top:var(--space-7)}
.thesis-spread{display:grid;grid-template-columns:minmax(0,340px) minmax(0,680px);justify-content:space-between;gap:64px;padding:var(--space-7) 0 var(--space-5)}
.thesis-spread h2{font:400 30px/1.15 var(--display);letter-spacing:-.5px}
.thesis-spread h2 span{display:block;font:400 11px/1.5 var(--mono);letter-spacing:.04em;color:var(--muted);margin-bottom:12px}
.thesis-body{min-width:0}
.thesis-body>p,.thesis-body li{font-size:16px;line-height:1.8;text-wrap:pretty}
.thesis-body>p{margin:0 0 18px}
.thesis-body strong{font-weight:500}
.thesis-body h3{font:400 25px/1.2 var(--display);letter-spacing:-.3px;margin:44px 0 14px}
.thesis-body h3:first-child{margin-top:0}
.thesis-body h3 span{font:400 11px/1 var(--mono);letter-spacing:.04em;color:var(--muted);margin-right:14px;vertical-align:3px}
.thesis-body var,.eq var{font-family:var(--display);font-style:italic;font-size:1.08em}
.thesis-link{border-bottom:1px solid var(--ink)}
.thesis-link:hover{color:var(--copper);border-color:var(--copper)}
.thesis-rules,.thesis-risks{margin:0 0 22px;padding:0;list-style:none;counter-reset:rule}
.thesis-rules li,.thesis-risks li{position:relative;border-top:1px solid var(--rule);padding:13px 0 13px 44px}
.thesis-rules li:last-child,.thesis-risks li:last-child{border-bottom:1px solid var(--rule)}
.thesis-rules li::before{counter-increment:rule;content:counter(rule,decimal-leading-zero);position:absolute;left:0;top:19px;font:400 11px/1.5 var(--mono);letter-spacing:.04em;color:var(--muted)}
.thesis-risks li{padding-left:0}

/* Formula blocks. */
.eq{display:flex;align-items:center;justify-content:space-between;gap:24px;border-block:1px solid var(--rule);padding:24px 0;margin:26px 0 14px}
.eq-body{display:flex;flex-wrap:wrap;align-items:center;gap:10px .34em;font:400 25px/1.3 var(--display);font-variant-numeric:lining-nums;letter-spacing:-.1px}
.eq-body var{font-size:1em}
.eq-body .fn,.eq-body .tx{font-style:normal}
.eq-body .tx{font-size:.84em;letter-spacing:0}
.eq-body sup{font-size:.58em;line-height:1;vertical-align:top;position:relative;top:-.5em;margin-left:.08em}
.eq-body sub{font-size:.56em;line-height:1;vertical-align:baseline;position:relative;top:.35em;margin-left:.06em;font-style:normal}
.eq-gap{flex-basis:100%;height:4px}
.eq-frac{display:inline-flex;flex-direction:column;align-items:stretch;text-align:center;font-size:.8em;line-height:1.1}
.eq-frac>span{display:block;padding:0 7px 4px}
.eq-frac>span+span{border-top:1px solid var(--ink);padding:5px 7px 0}
.eq-no{font:400 11px/1 var(--mono);letter-spacing:.04em;color:var(--muted)}
.eq-where{font-size:13px!important;line-height:1.7!important;color:var(--muted)}

/* Figures: the drawing, its HTML labels, then a caption under a rule. */
.fig{margin:36px 0 34px}
.plot{position:relative;padding:26px 0 50px 38px}
.plot svg{display:block;width:100%;height:auto;overflow:visible}
.plot .axis{fill:none;stroke:var(--engraving-ink);stroke-width:var(--hairline-strong);vector-effect:non-scaling-stroke}
.plot .grid{fill:none;stroke:var(--rule);stroke-width:var(--hairline);vector-effect:non-scaling-stroke}
.plot .rule-line{fill:none;stroke:var(--engraving-ink);stroke-width:var(--hairline);vector-effect:non-scaling-stroke}
.plot .curve{fill:none;stroke:var(--engraving-copper);stroke-width:1.25px;vector-effect:non-scaling-stroke}
.plot .curve.second{stroke:var(--engraving-plum)}
.plot .mark{fill:var(--paper);stroke:var(--engraving-copper);stroke-width:1px;vector-effect:non-scaling-stroke}
.plot .mark.plum{stroke:var(--engraving-plum)}
.plot .hatch-line{stroke:var(--engraving-plum);stroke-width:var(--hairline);vector-effect:non-scaling-stroke}
.plot .band-edge{fill:none;stroke:var(--engraving-plum);stroke-width:var(--hairline-strong);vector-effect:non-scaling-stroke}
.plot-labels{position:absolute;inset:26px 0 50px 38px;pointer-events:none;font:400 11px/1.2 var(--mono);letter-spacing:.02em;color:var(--muted)}
.plot-labels span{position:absolute;white-space:nowrap}
.plot-labels .y{right:100%;margin-right:9px;transform:translateY(-50%)}
.plot-labels .x{top:100%;margin-top:9px;transform:translateX(-50%)}
.plot-labels .x.last{transform:translateX(-100%)}
.plot-labels .pt{transform:translate(calc(-100% - 7px),calc(-100% - 5px))}
.plot-labels .pt.up{transform:translate(-50%,calc(-100% - 9px))}
.plot-labels .pt.upleft{transform:translate(-100%,calc(-100% - 9px))}
.plot-labels .pt.low{transform:translate(8px,7px)}
.plot-labels .ax-y{left:-38px;top:-26px;letter-spacing:.04em}
.plot-labels .ax-x{right:0;top:100%;margin-top:32px;letter-spacing:.04em}
.plot-labels var{font-family:var(--display);font-style:italic;font-size:13px;letter-spacing:0}
.plot-labels .note{font:400 12px/1.45 var(--body);letter-spacing:0;color:var(--ink);white-space:normal}
.plot-labels .note b{display:block;font:400 11px/1.5 var(--mono);letter-spacing:.04em;color:var(--copper)}
.plot-labels .note.plum b{color:var(--plum)}
/* The ladder has rows instead of a vertical scale: each row is titled under its own line. */
.plot.ladder{padding-left:0}
.plot.ladder .plot-labels{inset:26px 0 50px 0}
.plot-labels .row{transform:translateY(9px);letter-spacing:.04em}
.plot-labels .row.all{left:0;transform:translateY(calc(-100% - 22px))}
.fig figcaption{display:flex;gap:6px;border-top:1px solid var(--rule);padding-top:12px;margin-top:16px;font-size:13px;line-height:1.65;color:var(--muted)}
.fig figcaption p{min-width:0}
.fig figcaption span{font:400 11px/1.95 var(--mono);letter-spacing:.04em;white-space:nowrap;margin-right:12px}

/* Fig. 1 is set in type: three stations joined by arrows, then the three ways a balance leaves a bank. */
.flow{border-top:1px solid var(--rule)}
.flow-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);gap:0 16px;align-items:start;padding:20px 0 22px}
.flow-row.flow-out{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 48px;border-top:1px solid var(--rule)}
.flow-row .overline{display:block;color:var(--muted)}
.flow-row p{font:400 21px/1.25 var(--display);letter-spacing:-.2px;margin:8px 0 8px}
.flow-row div>span:last-child{display:block;font-size:13px;line-height:1.6;color:var(--muted)}
.flow-row i{font:400 22px/1 var(--body);font-style:normal;color:var(--copper);padding-top:26px}
.flow-out .overline{color:var(--plum)}

/* Tables are ledgers: a mono header, hairlines between rows, figures in tabular mono. */
.thesis-table{width:100%;border-collapse:collapse;margin:26px 0 30px;font-size:14px;line-height:1.55}
.thesis-table th,.thesis-table td{text-align:left;vertical-align:top;padding:12px 18px 12px 0;border-top:1px solid var(--rule)}
.thesis-table th:last-child,.thesis-table td:last-child{padding-right:0}
.thesis-table thead th{border-top:0;font:400 11px/1.5 var(--mono);letter-spacing:.04em;color:var(--muted);text-transform:uppercase;padding-top:0}
.thesis-table tbody th{font-weight:400;color:var(--muted);width:24%}
.thesis-table tr:last-child>*{border-bottom:1px solid var(--rule)}
.thesis-table .num{font:400 13px/1.7 var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.thesis-table .num small{display:block;font-size:inherit;color:var(--muted);white-space:nowrap}
.thesis-page .site-footer{margin-top:80px}

@media(max-width:980px){
  .thesis-spread{grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:40px}
}
@media(max-width:760px){
  .thesis-front{padding-top:var(--space-7)}.thesis-front h1{font-size:32px;letter-spacing:-.6px}
  .thesis-spread{grid-template-columns:1fr;gap:22px;padding-top:var(--space-6)}
  .thesis-spread h2{font-size:26px}
  .eq{padding:20px 0}.eq-body{font-size:20px}
  .plot{padding-left:32px}.plot-labels{inset:26px 0 50px 32px}.plot-labels .ax-y{left:-32px}.plot.ladder{padding-left:0}.plot.ladder .plot-labels{inset:26px 0 50px 0}
  .plot-labels .minor,.plot-labels .note{display:none}
  .flow-row,.flow-row.flow-out{grid-template-columns:1fr;gap:0}
  .flow-row i{padding:12px 0;transform:rotate(90deg);justify-self:start}
  .flow-row.flow-out>div+div{margin-top:18px}
  .thesis-table{font-size:13px}.thesis-table th,.thesis-table td{padding-right:12px}
  .thesis-table .num{white-space:normal}
}
@media(max-width:480px){
  .fig figcaption{display:block}
  .plot-labels .ax-y,.plot-labels .ax-x{font-size:10px}
}
@media print{
  .thesis-page .site-header,.thesis-page .site-footer,.skip{display:none}
  .thesis-page{padding:0}.thesis-spread{display:block}.thesis-spread h2{margin-bottom:16px}
  .eq,.fig,.thesis-table{break-inside:avoid}
}
