.science-page { margin: 0; background: #eef1f3; color: #243746; }
.research-note { box-sizing: border-box; max-width: 850px; margin: 0 auto; padding: 44px 62px; background: #fff; color: #243746; font: 17px/1.65 Georgia, 'Times New Roman', serif; }
.research-note * { box-sizing: border-box; }
.research-note a { color: #146279; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.research-note a:focus-visible, .science-toolbar a:focus-visible, .science-toolbar button:focus-visible, .science-help:focus-visible { outline: 3px solid #197b9b; outline-offset: 4px; }
.note-header { border-top: 4px solid #243746; padding-top: 16px; }
.research-note .note-kicker { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 25px; font: 700 11px/1.5 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.note-kicker span { font-weight: 400; text-align: right; }
.research-note h1 { margin: 0 0 18px; font: 400 clamp(32px, 4vw, 47px)/1.12 Georgia, serif; letter-spacing: -.035em; color: #182e3d; }
.research-note .note-deck { font: 19px/1.5 Georgia, serif; color: #526471; margin: 0 0 18px; }
.research-note .note-meta { margin: 0; font: 12px/1.5 Arial, sans-serif; color: #526471; }
.note-contents { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0; padding: 15px 0; border-block: 1px solid #dbe2e6; font: 12px/1.5 Arial, sans-serif; }
.research-note h2 { margin: 32px 0 12px; color: #182e3d; font: 700 21px/1.3 Arial, sans-serif; }
.research-note h2 span { margin-right: 10px; font-size: 12px; color: #6b7e89; font-weight: 400; }
.research-note h3 { margin: 23px 0 9px; color: #243746; font: 700 16px/1.4 Arial, sans-serif; text-transform: none; letter-spacing: 0; }
.research-note p { margin: 0 0 15px; }
.research-note sup { line-height: 0; font: 11px Arial, sans-serif; }
.note-abstract { padding: 2px 20px 4px; background: #f3f7f8; border-left: 3px solid #50899a; }
.note-abstract h2 { margin-top: 17px; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; }
.note-abstract p { font-size: 16px; }
.note-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; padding: 18px 0; border-block: 1px solid #dbe2e6; font: 13px/1.55 Arial, sans-serif; }
.note-terms dt { font-weight: 700; margin-bottom: 4px; }
.note-terms dd { margin: 0; color: #526471; }
.note-equation { padding: 20px 12px; margin: 20px 0; border-block: 1px solid #dbe2e6; text-align: center; font-size: 18px; overflow-x: auto; }
.note-equation > span { font: 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.research-note figure { margin: 27px 0; padding: 20px 0 16px; border-block: 1px solid #dbe2e6; break-inside: avoid; }
.research-note figure img { display: block; max-width: 100%; width: 100%; height: auto; }
.research-note figcaption { margin-top: 16px; font: 13px/1.65 Arial, sans-serif; color: #526471; }
.research-note figcaption strong { color: #243746; }
.note-figure-pair { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 22px; }
.research-note .note-panel-label { margin: 0 0 10px; font: 700 12px/1.5 Arial, sans-serif; }
.research-note .note-data { padding: 15px; background: #f3f7f8; font: 13px/1.65 Arial, sans-serif; }
.note-bibliography { border-top: 2px solid #243746; margin-top: 30px; }
.note-bibliography ol { padding-left: 24px; font: 13px/1.65 Arial, sans-serif; }
.note-bibliography li { padding-left: 5px; margin-bottom: 14px; overflow-wrap: anywhere; scroll-margin-top: 18px; }
.research-note :target { scroll-margin-top: 18px; }
.note-bibliography li:target { background: #edf5f7; }
.note-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 15px; border-top: 1px solid #dbe2e6; font: 11px/1.5 Arial, sans-serif; color: #526471; }
.science-help { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #8094a3; border-radius: 50%; background: #ffffffb3; color: #344b5b; font: 700 17px Georgia, serif; cursor: pointer; align-self: flex-start; padding: 0; }
.science-help:hover { background: #fff; border-color: #146279; }
.science-dialog { width: min(940px, calc(100vw - 40px)); max-width: none; height: min(92dvh, 1100px); max-height: 92dvh; margin: auto; padding: 0; border: 1px solid #ccd7dd; border-radius: 12px; box-shadow: 0 24px 100px #061f354d; background: #fff; color: #243746; overflow: hidden; }
.science-dialog[open] { display: flex; flex-direction: column; }
.science-dialog::backdrop { background: #102535a8; backdrop-filter: blur(3px); }
.science-toolbar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 15px; padding: 12px 20px; border-bottom: 1px solid #dbe2e6; background: #f8fafb; font: 13px/1.5 Arial, sans-serif; }
.science-toolbar div { display: flex; align-items: center; gap: 20px; }
.science-toolbar a { color: #146279; white-space: nowrap; }
.science-toolbar button { border: 1px solid #c2cdd3; border-radius: 6px; background: white; color: #243746; width: 36px; flex: 0 0 36px; min-height: 36px; padding: 0; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.science-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.science-body > .science-message { padding: 30px; font: 16px/1.6 Arial, sans-serif; }
.science-dialog .note-footer a { display: none; }
@media (max-width: 600px) {
  .research-note { padding: 26px 22px; font-size: 16px; }
  .research-note h1 { font-size: 34px; }
  .research-note .note-kicker { display: block; }
  .note-kicker span { display: block; text-align: left; margin-top: 4px; }
  .note-terms { grid-template-columns: 1fr; gap: 12px; }
  .note-figure-pair { grid-template-columns: 1fr; gap: 24px; }
  .note-equation { font-size: 16px; }
  .science-dialog { width: calc(100vw - 16px); height: 96dvh; max-height: 96dvh; }
  .science-toolbar { padding: 9px 14px; }
  .science-toolbar div { gap: 12px; }
}
@media print {
  .science-page { background: white; }
  .research-note { max-width: none; padding: 0; font-size: 11pt; }
  .note-contents, .note-footer a { display: none; }
  .research-note a { color: inherit; }
}
