:root {
  --notes-ink: #15243a;
  --notes-muted: #66758a;
  --notes-blue: #1268d5;
  --notes-blue-dark: #0b4fa7;
  --notes-sky: #eaf4ff;
  --notes-paper: #ffffff;
  --notes-line: #dbe6f2;
  --notes-green: #16865c;
  --notes-shadow: 0 18px 55px rgba(29, 66, 112, 0.12);
}

.notes-page-body {
  background: #f5f8fc;
  color: var(--notes-ink);
}

.notes-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 68px;
}

.notes-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--notes-muted);
  font-size: 0.86rem;
  overflow: hidden;
  white-space: nowrap;
}

.notes-breadcrumb a {
  color: var(--notes-blue-dark);
  font-weight: 700;
}

.notes-breadcrumb i {
  color: #9aabc0;
  font-size: 0.67rem;
}

.notes-breadcrumb span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.55fr);
  align-items: center;
  gap: 30px;
  min-height: 330px;
  padding: clamp(34px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 12%, rgba(101, 190, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #082f63 0%, #0d5ebd 58%, #1386e8 100%);
  box-shadow: var(--notes-shadow);
  color: #fff;
}

.notes-hero::before,
.notes-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.notes-hero::before {
  right: -90px;
  bottom: -150px;
  width: 390px;
  height: 390px;
}

.notes-hero::after {
  right: 125px;
  bottom: -180px;
  width: 300px;
  height: 300px;
}

.notes-hero-copy,
.notes-hero-art {
  position: relative;
  z-index: 1;
}

.notes-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.notes-hero h1,
.note-reader-head h1 {
  margin: 13px 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.15rem, 5vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.notes-hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.75;
}

.notes-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.notes-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.notes-hero-art {
  display: grid;
  place-items: center;
  width: min(270px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.notes-hero-art > i {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 112px;
  height: 134px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px 18px 28px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(0, 24, 63, 0.28);
  color: #e14949;
  font-size: 3.65rem;
  transform: rotate(4deg);
}

.notes-book {
  position: absolute;
  width: 150px;
  height: 105px;
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(0, 24, 63, 0.2);
}

.notes-book-one {
  background: #ffd45c;
  transform: translate(-34px, 66px) rotate(-10deg);
}

.notes-book-two {
  background: #58d6ae;
  transform: translate(38px, 81px) rotate(10deg);
}

.notes-library,
.notes-more {
  margin-top: 36px;
}

.notes-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.notes-section-head span {
  color: var(--notes-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.notes-section-head h2 {
  margin: 4px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.notes-section-head > strong,
.notes-section-head > a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--notes-line);
  border-radius: 999px;
  background: #fff;
  color: var(--notes-blue-dark);
  font-size: 0.8rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.note-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--notes-line);
  border-radius: 21px;
  background: var(--notes-paper);
  box-shadow: 0 8px 26px rgba(33, 68, 109, 0.07);
  color: var(--notes-ink);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.note-card:hover {
  border-color: #9fc5ee;
  box-shadow: 0 17px 36px rgba(33, 83, 142, 0.14);
  transform: translateY(-4px);
}

.note-card-number {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #edf3fa;
  font-family: "Poppins", sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.note-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 52px;
  height: 60px;
  border-radius: 14px 14px 19px 14px;
  background: #fff0f0;
  color: #dc3f49;
  font-size: 1.75rem;
}

.note-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.note-card-body small {
  color: var(--notes-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.note-card-body > span {
  color: var(--notes-muted);
  font-size: 0.75rem;
}

.note-card-action {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--notes-blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.notes-empty-state {
  padding: 60px 22px;
  border: 1px dashed #bdcce0;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.notes-empty-state > i {
  color: #7aa9d7;
  font-size: 2.7rem;
}

.notes-empty-state h1,
.notes-empty-state h3 {
  margin: 14px 0 7px;
  font-family: "Poppins", sans-serif;
}

.notes-empty-state p {
  margin: 0;
  color: var(--notes-muted);
}

.notes-empty-state a {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--notes-blue);
  color: #fff;
  font-weight: 800;
}

.note-reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(25px, 5vw, 46px);
  border: 1px solid var(--notes-line);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(234, 244, 255, 0.92), rgba(255, 255, 255, 0.97)),
    #fff;
  box-shadow: 0 10px 35px rgba(33, 68, 109, 0.08);
}

.note-reader-head .notes-eyebrow {
  color: var(--notes-blue);
}

.note-reader-head h1 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 4.4vw, 3.35rem);
}

.note-reader-head p {
  margin: 0;
  color: var(--notes-muted);
  line-height: 1.7;
}

.note-access-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #b9d7f7;
  border-radius: 15px;
  background: #edf6ff;
  color: var(--notes-blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.note-access-badge.is-unlocked {
  border-color: #a9ddc8;
  background: #eaf9f3;
  color: var(--notes-green);
}

.notes-document-viewer {
  margin-top: 16px;
  padding: 10px;
  border-color: #b8cce3;
  border-radius: 18px;
  box-shadow: var(--notes-shadow);
}

.notes-document-viewer .article-print-viewer-head {
  margin: 2px 4px 9px;
}

.notes-document-viewer .article-print-stage {
  position: relative;
  display: block;
}

.notes-document-viewer .article-print-screen {
  min-height: 220px;
  padding: 4px;
  border-radius: 12px;
  overscroll-behavior: contain;
}

.notes-document-viewer .article-print-screen canvas {
  border-radius: 7px;
  pointer-events: none;
  user-select: none;
  -webkit-touch-callout: none;
  will-change: transform;
}

.notes-document-viewer .article-print-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 48, 86, 0.2);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.notes-document-viewer .article-print-nav.prev {
  left: 12px;
}

.notes-document-viewer .article-print-nav.next {
  right: 12px;
}

.notes-document-viewer.is-fullscreen .article-print-screen,
.notes-document-viewer:fullscreen .article-print-screen,
.notes-document-viewer:-webkit-full-screen .article-print-screen {
  touch-action: none;
  cursor: grab;
}

.notes-document-viewer.is-fullscreen.is-pdf-zoomed .article-print-screen,
.notes-document-viewer:fullscreen.is-pdf-zoomed .article-print-screen,
.notes-document-viewer:-webkit-full-screen.is-pdf-zoomed .article-print-screen {
  cursor: grabbing;
}

.notes-viewer-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.notes-zoom-controls {
  display: none;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
}

.notes-zoom-controls button {
  display: grid;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(191, 219, 254, 0.18);
  background: transparent;
  color: #eff6ff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.notes-zoom-controls button:last-child {
  border-right: 0;
}

.notes-zoom-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.notes-document-viewer.is-fullscreen .notes-zoom-controls,
.notes-document-viewer:fullscreen .notes-zoom-controls,
.notes-document-viewer:-webkit-full-screen .notes-zoom-controls {
  display: flex;
}

.notes-document-viewer .article-print-viewer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 4px 1px;
}

.notes-document-viewer .article-print-nav[data-login-required="true"] {
  border-color: #ffd08a;
  background: #fff5e6;
  color: #9b5d00;
}

.notes-login-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--notes-blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.notes-gesture-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #586b82;
  font-size: 0.76rem;
  font-weight: 700;
}

.notes-unlock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #c9dff6;
  border-radius: 20px;
  background: linear-gradient(100deg, #edf7ff, #fff);
}

.notes-unlock-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--notes-blue);
  color: #fff;
  font-size: 1.3rem;
}

.notes-unlock-card strong {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.notes-unlock-card p {
  margin: 4px 0 0;
  color: var(--notes-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.notes-unlock-card > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--notes-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.notes-grid-compact .note-card {
  min-height: 132px;
}

.notes-grid-compact .note-card-action {
  right: 18px;
  bottom: 16px;
}

.notes-page-body .site-ad-slot {
  margin-block: 26px;
}

@media (max-width: 900px) {
  .notes-hero {
    grid-template-columns: 1fr;
  }

  .notes-hero-art {
    display: none;
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-reader-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notes-unlock-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notes-unlock-card > a {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .notes-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 90px;
  }

  .notes-hero,
  .note-reader-head {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .notes-hero h1 {
    font-size: 2.35rem;
  }

  .notes-hero-points {
    align-items: stretch;
    flex-direction: column;
  }

  .notes-hero-points span {
    width: fit-content;
  }

  .notes-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    min-height: 170px;
  }

  .notes-document-viewer .article-print-viewer-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .notes-document-viewer {
    padding: 6px;
  }

  .notes-document-viewer .article-print-viewer-head {
    margin: 4px 4px 8px;
  }

  .notes-document-viewer .article-print-screen {
    min-height: 180px;
    padding: 2px;
  }

  .notes-document-viewer .article-print-nav {
    width: 38px;
    height: 38px;
  }

  .notes-unlock-card {
    grid-template-columns: 1fr;
    padding: 19px;
  }

  .notes-unlock-icon {
    width: 46px;
    height: 46px;
  }

  .notes-unlock-card > a {
    grid-column: auto;
  }
}
