/* Reading pages inside the research section.
   The lab grid stays on research/index.html.
   A note is one column, with the equation set as the figure. */

.note-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(7, 7, 17, 0.92);
  border-bottom: 1px solid rgba(123, 140, 255, 0.16);
}

.note-top .brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.note-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.note-top a {
  color: #d7dcf8;
  text-decoration: none;
}

.note-top a:hover,
.sheet a:hover,
.shelf a:hover {
  color: #7cf3db;
}

a:focus-visible {
  outline: 2px solid #7cf3db;
  outline-offset: 3px;
}

.sheet {
  max-width: 74ch;
  margin: 28px auto 64px;
  padding: 8px 22px 28px;
  color: #e7e9ff;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  background: rgba(7, 7, 17, 0.9);
  border: 1px solid rgba(123, 140, 255, 0.16);
  border-radius: 18px;
}

.sheet h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 22px 0 12px;
}

.sheet h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.6em 0 0.45em;
}

.sheet p,
.sheet li {
  color: #d5daf5;
}

.kicker {
  margin: 22px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: #9aa3d4;
}

.eq {
  margin: 1em 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: "Cascadia Code", "Segoe UI Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e9fff8;
  background: rgba(8, 24, 22, 0.72);
  border-left: 3px solid #7cf3db;
  border-radius: 0 10px 10px 0;
}

.sheet table {
  width: 100%;
  margin: 1em 0 1.2em;
  border-collapse: collapse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
}

.sheet th,
.sheet td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(123, 140, 255, 0.16);
}

.sheet th {
  color: #c9ceef;
  font-weight: 650;
}

.sheet ol,
.sheet ul {
  padding-left: 1.2em;
}

.sheet a {
  color: #9af6e2;
}

.share {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.card {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.8em 0 1.2em;
  border-radius: 12px;
  border: 1px solid rgba(124, 243, 219, 0.28);
}

.shelf {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid rgba(123, 140, 255, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shelf h2 {
  margin-top: 0;
}

.shelf ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

@media (max-width: 640px) {
  .note-top { padding: 14px 16px; }
  .sheet { margin: 16px 12px 48px; padding: 4px 16px 22px; }
}
