:root {
  --ink: #17202a;
  --secondary: #465261;
  --blue: #174f87;
  --rule: #c4cdd5;
  --paper: #fff;
  --finding: #853c22;
  --wash: #f3f6f8;
  --measure: 70ch;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  margin: 0;
  font:
    18px / 1.65 "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
main {
  max-width: 1580px;
  padding: 36px 36px 90px;
  margin: auto;
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  text-wrap: balance;
}
h1 {
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 650;
}
h2 {
  margin: 0 0 16px;
  font-size: 29px;
  font-weight: 650;
}
h3 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 23px;
  font-weight: 650;
}
h4 {
  margin: 0 0 14px;
  font-size: 23px;
  font-weight: 650;
}
p {
  max-width: var(--measure);
  margin: 0 0 16px;
}
strong {
  font-weight: 650;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
  cursor: pointer;
}
a:hover {
  color: #0a3158;
  text-decoration-thickness: 2px;
}
a:active {
  color: #081f36;
}
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 10px;
  font-size: 16px;
}
.chapter {
  padding-top: 30px;
  margin-top: 42px;
  border-top: 2px solid var(--ink);
}
.study {
  padding: 32px 0 44px;
  scroll-margin-top: 28px;
  border-bottom: 1px solid var(--rule);
}
.study figure {
  margin: 0;
}
.study img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
figcaption {
  margin-top: 7px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  color: var(--secondary);
}
.explanation {
  max-width: var(--measure);
  margin-top: 24px;
}
.key {
  display: inline-grid;
  place-content: center;
  min-width: 31px;
  height: 31px;
  font-size: 18px;
  line-height: 1;
  color: white;
  background: var(--blue);
}
.formula {
  padding: 14px 18px;
  margin: 18px 0;
  font:
    22px / 1.5 Cambria,
    "Times New Roman",
    serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  background: var(--wash);
  border-left: 3px solid var(--blue);
}
.finding {
  padding-left: 17px;
  margin: 18px 0;
  color: var(--ink);
  border-left: 3px solid var(--finding);
}
@media (max-width: 820px) {
  main {
    padding: 26px 18px 60px;
  }
  .study {
    padding: 26px 0 34px;
  }
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 26px;
  }
  .chapter {
    margin-top: 34px;
  }
  .explanation {
    margin-top: 20px;
  }
}
@media print {
  main {
    padding: 0;
  }
  nav {
    display: none;
  }
  .study {
    padding: 18px 0;
    break-before: page;
  }
  .formula {
    print-color-adjust: exact;
  }
  a {
    color: inherit;
  }
  body {
    font-size: 12pt;
  }
  figcaption {
    font-size: 10pt;
  }
}
.rate-note {
  padding: 24px;
  margin: 26px 0;
  border: 1px solid var(--rule);
}
.rate-note table,
#comment-sidebar table {
  width: 100%;
  margin: 16px 0;
  font-variant-numeric: tabular-nums;
  border-collapse: collapse;
}
.rate-note th,
.rate-note td,
#comment-sidebar th,
#comment-sidebar td {
  padding: 10px 8px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.rate-note th,
#comment-sidebar th {
  font-weight: 650;
}
.rate-note p:last-child,
.finding p:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .rate-note {
    padding: 16px;
  }
  .rate-note th,
  .rate-note td {
    padding: 8px 4px;
    font-size: 16px;
  }
}
.comment-anchor {
  padding: 0 1px;
  color: inherit;
  cursor: pointer;
  background: #fff3b0;
  border-bottom: 2px solid #f2c94c;
}
.comment-anchor:hover,
.comment-anchor.is-active {
  background: #ffe680;
}
.comment-anchor:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.comment-body {
  display: none;
}
#comment-sidebar {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 560px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 22px 26px 26px;
  overflow-y: auto;
  font-size: 17px;
  line-height: 1.6;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(23, 32, 42, 0.18);
}
#comment-sidebar[hidden] {
  display: none;
}
#comment-sidebar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
#comment-sidebar h2 {
  margin: 0;
  font-size: 18px;
}
.comment-close {
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  background: none;
  border: 0;
}
#comment-sidebar blockquote {
  padding: 8px 12px;
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--secondary);
  background: var(--wash);
  border-left: 3px solid #f2c94c;
}
#comment-sidebar p {
  max-width: none;
  margin: 0 0 12px;
}
#comment-sidebar p:last-child {
  margin-bottom: 0;
}
@media print {
  #comment-sidebar {
    display: none;
  }
  .comment-anchor {
    background: none;
    border-bottom: 1px dotted var(--ink);
  }
}
