.document-project { --geo-line: rgb(213 210 227 / 28%); --geo-control: #d5d2e3; }
.geo-heading { margin-bottom: clamp(1rem, 2.4vw, 2rem); }
.geo-heading .project-title { margin: 0; }
.document-project [hidden] { display: none !important; }
.geo-reader { width: 100%; border: 1px solid var(--geo-line); box-sizing: border-box; }
.geo-scroll { position: relative; isolation: isolate; aspect-ratio: 16/9; max-height: 73vh; max-height: 73svh; width: 100%; overflow: auto; background: #131222; overscroll-behavior: contain; }
.geo-paper { position: relative; margin: 0 auto; background: white; isolation: isolate; }
.geo-paper canvas { display: block; width: 100%; height: 100%; }
.geo-native { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.geo-message { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; text-align: center; color: var(--geo-control); font: 500 1rem/1.5 "Hanken Grotesk", system-ui, sans-serif; padding: 1rem; pointer-events: none; }
.geo-toolbar, .geo-footnotes, .geo-references summary { font: 500 1rem/1.4 "Hanken Grotesk", system-ui, sans-serif; color: var(--geo-control); }
.geo-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; padding: .4rem .65rem; background: #27243a; border-top: 1px solid var(--geo-line); }
.geo-navigation, .geo-zoom-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: 0; }
.geo-toolbar button, .geo-toolbar input { min-height: 44px; min-width: 44px; border: 1px solid transparent; background: transparent; border-radius: 0; color: inherit; font: inherit; }
.geo-toolbar button { padding: .3rem .48rem; cursor: pointer; }
.geo-toolbar button:hover:enabled, .geo-toolbar button:focus-visible { background: #38344a; }
.geo-toolbar button:disabled { opacity: .4; cursor: default; }
.geo-toolbar button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .3em; }
.geo-navigation input { appearance: textfield; -moz-appearance: textfield; padding: .15rem; width: 3rem; box-sizing: border-box; border-color: var(--geo-line); text-align: center; }
.geo-navigation input::-webkit-inner-spin-button { -webkit-appearance: none; }
.geo-navigation label, .geo-navigation span { white-space: nowrap; }
#geo-prev, #geo-next, #geo-minus, #geo-plus { font-size: 1.45rem; line-height: 1; }
.geo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.geo-footnotes { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .3rem 2rem; margin-top: .9rem; color: #b7b5c6; font-size: .95rem; }
.geo-file-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.25rem; }
.geo-footnotes p { margin: 0; }
.geo-footnotes a { display: inline-block; padding: .6rem 0; text-underline-offset: .2em; text-decoration: underline; }
.geo-file-links a { color: var(--geo-control); }
.document-project :focus-visible { outline: 2px solid #d5d2e3; outline-offset: 2px; }
.document-links { position: absolute; inset: 0; pointer-events: none; }
.document-links > a { position: absolute; pointer-events: auto; }
.document-links > a:is(:focus-visible, :hover) { background: rgb(97 145 205 / 23%); outline-offset: 0; }
.research-project .project-intro { margin-bottom: clamp(1.4rem, 3.2vw, 3rem); }
.research-project .project-lede { max-width: 53ch; }
.geo-references { padding: .65rem 1rem; border-top: 1px solid var(--geo-line); }
.geo-references summary { width: fit-content; cursor: pointer; align-content: center; min-height: 44px; }
.geo-references ul { max-width: 72ch; padding-inline-start: 1.4rem; }
.geo-references li { font-size: 1.3rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.geo-references a { text-decoration: underline; }
@media (max-width: 640px) {
  .geo-toolbar { flex-direction: column; align-items: flex-start; padding: .2rem .4rem; gap: 0; }
  .geo-navigation, .geo-zoom-controls { gap: .12rem; }
  .geo-footnotes { display: block; margin-top: .4rem; }
  .geo-footnotes p { margin-top: .1rem; }
}
/* PDF.js 5.x positions selectable glyphs using these custom properties. */
.geo-paper .textLayer { position: absolute; inset: 0; overflow: clip; line-height: 1; text-align: initial; text-size-adjust: none; -webkit-text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.geo-paper .textLayer :is(span, br) { position: absolute; color: transparent; white-space: pre; transform-origin: 0 0; cursor: text; }
.geo-paper .textLayer > :not(.markedContent), .geo-paper .textLayer .markedContent span:not(.markedContent) { --font-height: 0; --scale-x: 1; --rotate: 0deg; font-size: calc(var(--text-scale-factor) * var(--font-height)); transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv)); }
.geo-paper .textLayer .markedContent { display: contents; }
.geo-paper .textLayer ::selection { background: rgb(116 126 214 / 40%); }
.geo-pages { position:relative; width:max(100%, var(--paper-width, 0px)); display:flex; flex-direction:column; gap:12px; }
.geo-pages .geo-paper { width:var(--paper-width); height:var(--paper-height); flex:none; }
.geo-scroll { overflow-anchor:none; scrollbar-gutter:stable; overscroll-behavior:auto; }
.geo-paper { overflow:hidden; }
.geo-method { max-width: 71ch; margin: .8rem 0 0; font-size: clamp(1.25rem, 1.65vw, 1.55rem); line-height: 1.32; }
#geo-fullscreen { border:1px solid var(--geo-line); padding: .4rem .85rem; }
.geo-page-failure { margin: 1rem; color:#20202a; }
.geo-expanded { overflow:hidden; }
.geo-reader[data-expanded="true"] { position:fixed; inset:0; z-index:10000; background:#191728; width:100%; height:100%; height:100dvh; display:flex; flex-direction:column; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.geo-reader[data-expanded="true"] .geo-scroll { flex:1 1 0; height:0; min-height:0; max-height:none; aspect-ratio:auto !important; }
.geo-reader[data-expanded="true"] .geo-toolbar { flex:none; }
.geo-reader[data-expanded="true"] .geo-references { flex:0 1 auto; max-height:25vh; overflow:auto; }
@media(max-width:640px) {
  .geo-toolbar { flex-direction:row; align-items:center; justify-content:flex-start; flex-wrap:wrap; column-gap:.6rem; }
  .geo-zoom-controls { flex-wrap:nowrap; }
  #geo-fullscreen { min-height:44px; }
}
