/* Moonlit library: the selected first direction. All rules are account-only. */
body.library-ready-page { background: #18141e; }
.library-ready-page .site-header {
  position: relative;
  z-index: 2;
  padding: 44px 22px 0;
  gap: 12px;
  background: transparent;
}
.library-ready-page .wordmark { font-size: 42px; }
.library-ready-page .wordmark span { font-size: 9px; letter-spacing: 2px; }
.library-ready-page .site-header #nav {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  font-size: 14px;
}
.library-ready-page #nav a { min-height: 44px; padding: 0 0 3px; text-decoration: none; border-bottom: 1px solid transparent; }
.library-ready-page #nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
.library-ready-page main { padding: 56px 22px 58px; min-height: 0; }
.library-ready-page footer { margin-top: 26px; }
.library-ready-hero { position: relative; isolation: isolate; margin-bottom: 22px; }
.library-ready-art { position: absolute; z-index: -1; inset: -178px -22px auto; height: 298px; overflow: hidden; pointer-events: none; }
.library-ready-art img { position: absolute; top: 18px; right: -28px; width: 360px; max-width: none; height: auto; }
.library-ready-hero h1 { margin: 0; font-size: clamp(38px, 10.8vw, 45px); line-height: 1.04; letter-spacing: -1.2px; }
.library-ready-hero h1 em { color: #d0b5d9; }
.library-ready-hero > p { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: #c8b9cf; }
.library-reading-list { display: grid; gap: 24px; }
.library-reading {
  position: relative;
  margin: 0 -8px;
  padding: 35px 27px 16px;
  background: #f4ead8 url('/static/assets/account-question-paper-v1.webp') no-repeat right top / auto 100%;
  color: #211b25;
  border: 1px solid #f6ecd9;
  border-radius: 14px;
  isolation: isolate;
}
.library-reading::before { content: ''; position: absolute; z-index: -1; inset: 5px; border: 1px solid #b8884c; outline: 1px solid #c99e68; outline-offset: -4px; border-radius: 10px; pointer-events: none; }
.library-reading .library-topic { margin: 0 6px 26px; color: #865d32; font-size: 10px; font-weight: 600; letter-spacing: 1.3px; line-height: 1.5; text-transform: uppercase; }
.library-reading h2 { margin: 0 6px 24px; color: #211b25; font-size: clamp(26px, 7.4vw, 31px); line-height: 1.09; letter-spacing: -.3px; overflow-wrap: anywhere; font-weight: 350; }
.library-reading .library-open { min-height: 51px; padding: 12px 16px; background: #d0b7dc; color: #251b2b; font-size: 16px; border-radius: 9px; }
.library-reading .library-open:hover { background: #c5a9d4; }
.library-download { display: flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; min-height: 44px; margin: 8px auto 0; padding: 4px 8px; color: #655071; font-size: 14px; font-weight: 500; text-decoration: none; }
.library-download:hover { text-decoration: underline; text-underline-offset: 4px; }
.library-download-icon { width: 19px; height: 19px; background: currentColor; mask: url('/static/assets/phosphor-download-simple.svg') center / contain no-repeat; }
.library-reading a:focus-visible { outline: 2px solid #655071; outline-offset: 4px; }
.library-next { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; align-items: center; margin: 23px -4px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.library-next > img { display: block; width: 32px; height: 42px; object-fit: cover; }
.library-next h2 { margin: 0; font-size: 16px; line-height: 1.2; letter-spacing: -.5px; }
.library-next p { margin: 7px 0 0; font-size: 12px; line-height: 1.4; color: #b8a8c2; }
.library-next .library-plan-button { min-height: 44px; padding: 8px 12px; font-size: 13px; font-weight: 500; color: #d7c1e0; border-color: #74607e; white-space: nowrap; }
.library-allowance { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.library-allowance h2 { margin: 0; font-size: 24px; }
.library-allowance .actions { margin-top: 16px; }
.library-pending { margin: 0 -8px; }
.library-pending h2 { margin-top: 16px; font-size: 27px; overflow-wrap: anywhere; }
.library-pending p { font-size: 14px; }
.library-plan-slot > .account-early-plan { margin-top: 24px; }
@media (max-width: 359px) {
  .library-ready-page .site-header { padding-top: 32px; }
  .library-ready-page main { padding-top: 44px; }
  .library-ready-art { top: -166px; }
  .library-ready-art img { right: -87px; width: 370px; }
  .library-ready-hero > p { font-size: 14px; }
  .library-reading { padding-inline: 22px; }
  .library-reading .library-topic { margin-bottom: 22px; font-size: 9px; letter-spacing: 1px; }
  .library-next { grid-template-columns: 27px minmax(0, 1fr); gap: 10px; }
  .library-next > img { width: 27px; height: 36px; grid-row: span 2; align-self: start; }
  .library-next .library-plan-button { grid-column: 2; justify-self: start; }
}
