/* Notes and PYQ reference compositions. The native exported mascot and the
   existing search remain independent interactive elements. */
html body:is(#notes-page,#pyqs-page) .hero.library-hero {
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr) !important;
  grid-template-rows: auto auto;
  grid-template-areas: "text mascot" "search mascot" !important;
  align-items: center;
  align-content: center;
  gap: 20px 26px;
  width: min(1320px,calc(100% - 48px)) !important;
  min-height: 492px;
  max-width: none !important;
  margin: 28px auto 36px !important;
  padding: 48px 48px 66px !important;
  border: 1px solid #e1ebfb !important;
  border-radius: 28px !important;
  background: #eef5ff !important;
  box-shadow: 0 12px 32px rgba(39,103,211,.09) !important;
  overflow: visible !important;
  text-align: left;
  z-index: 10;
}
html body:is(#notes-page,#pyqs-page).gx-logo-background-enabled::before,
html body:is(#notes-page,#pyqs-page).gx-logo-background-enabled::after { display: none !important; }
html body:is(#notes-page,#pyqs-page) .library-hero__backdrop {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at 8% 20%,#fff 0%,rgba(255,255,255,.72) 30%,transparent 68%),linear-gradient(120deg,#f4f8ff,#e5efff);
}
html body:is(#notes-page,#pyqs-page) .library-hero__watermark {
  position: absolute; width: 400px; height: 400px; max-width: none;
  left: 44%; top: 6%; object-fit: contain; opacity: .055; filter: none;
}
html body:is(#notes-page,#pyqs-page) .library-hero__wave {
  position: absolute; left: -12%; bottom: -256px; width: 135%; height: 320px;
  border-radius: 50% 50% 0 0; background: #c3ddff; transform: rotate(3deg);
}
html body:is(#notes-page,#pyqs-page) .library-hero__wave--front {
  left: -8%; bottom: -286px; width: 130%; background: #96c4ff; transform: rotate(-5deg);
}
html body:is(#notes-page,#pyqs-page) .library-hero .hero-text {
  grid-area: text; align-self: end; position: relative; z-index: 3;
  min-width: 0; width: 100%; padding: 0; margin: 0;
}
html body:is(#notes-page,#pyqs-page) .library-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; margin: 0 0 18px; padding: 7px 13px;
  border: 1px solid #dbe8ff; border-radius: 999px;
  color: #0755ed !important; background: #e6f0ff;
  font: 800 11px/1.2 Inter,Arial,sans-serif !important;
  letter-spacing: .015em; text-transform: uppercase;
}
html body:is(#notes-page,#pyqs-page) .library-hero__badge lucide-icon { width: 18px; height: 18px; }
html body:is(#notes-page,#pyqs-page):not(#_):not(#_) .library-hero .hero-text h1 {
  display: block !important; margin: 0 0 14px !important;
  color: #0b173d !important; background: none !important;
  -webkit-text-fill-color: currentColor;
  font-family: Manrope,Inter,Arial,sans-serif !important;
  font-size: clamp(38px,4.2vw,60px) !important; font-weight: 800 !important;
  line-height: 1.08 !important; letter-spacing: -.045em;
}
html body:is(#notes-page,#pyqs-page) .library-hero .hero-text h1 > span { color: #075bfa !important; }
html body:is(#notes-page,#pyqs-page) .library-hero .hero-text p {
  max-width: 540px; margin: 0 !important; color: #51617f !important;
  font: 500 16px/1.6 Inter,Arial,sans-serif !important;
  hyphens: manual; text-wrap: pretty;
}
html body:is(#notes-page,#pyqs-page) .library-hero .search-section {
  grid-area: search; align-self: start; z-index: 8;
  position: relative; width: 100% !important; max-width: 570px !important;
  margin: 0 !important; padding: 0 !important;
}
html body:is(#notes-page,#pyqs-page) .library-hero .search-container {
  display: block !important; position: relative; margin: 0 !important;
  width: 100% !important; max-width: none !important; padding: 0 !important;
  border: 0 !important; border-radius: 999px !important;
  background: transparent !important; box-shadow: none !important;
  overflow: visible !important;
}
html body:is(#notes-page,#pyqs-page) .library-hero .search-icon {
  position: absolute; display: inline-flex; align-items: center;
  left: 19px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 22px; height: 22px; color: #075bfa !important; pointer-events: none;
}
html body:is(#notes-page,#pyqs-page) .library-hero .search-container input {
  display: block; box-sizing: border-box; width: 100% !important;
  min-width: 0; height: 58px !important; min-height: 58px !important;
  padding: 15px 18px 15px 53px !important;
  border: 1px solid #b9d4ff !important; border-radius: 999px !important;
  background: rgba(255,255,255,.95) !important; color: #192b4c !important;
  box-shadow: 0 8px 16px rgba(32,107,229,.1) !important;
  font: 500 13px/1.4 Inter,Arial,sans-serif !important;
  letter-spacing: 0; outline: 0 !important;
}
html body:is(#notes-page,#pyqs-page) .library-hero .search-container input::placeholder { color: #7886a0 !important; opacity: 1; }
html body:is(#notes-page,#pyqs-page) .library-hero .search-container input:focus {
  border-color: #397ff2 !important; box-shadow: 0 0 0 3px rgba(59,130,246,.16),0 8px 16px rgba(32,107,229,.1) !important;
}
html body:is(#notes-page,#pyqs-page) .library-hero .suggestions {
  top: calc(100% + 9px) !important; right: 0; left: 0;
  width: 100% !important; max-width: none !important;
  max-height: 300px !important; overflow: auto; z-index: 50;
  border: 1px solid #dae5f7; border-radius: 14px;
  background: #fff; box-shadow: 0 12px 24px rgba(25,58,119,.14);
}
html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper {
  grid-area: mascot; display: grid !important; place-items: center;
  grid-template-columns: minmax(0,1fr);
  position: relative; align-self: end; justify-self: center;
  width: 100%; max-width: 470px; min-width: 0;
  height: 370px; margin: 0 0 -27px; padding: 0; z-index: 2;
}
html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper > gyani-web {
  position: relative; width: 460px !important; max-width: 115% !important;
  height: 460px !important; aspect-ratio: 1 !important;
  margin: -62px 0 0 !important; z-index: 2;
}
html body#notes-page .library-hero .mascot-wrapper > gyani-web { width: 510px !important; height: 510px !important; margin-top: -85px !important; }
html body:is(#notes-page,#pyqs-page) .library-hero__orbit {
  position: absolute; left: 4%; top: 15%; width: 96%; height: 64%;
  border: 2px solid rgba(255,255,255,.9); border-radius: 50%; transform: rotate(-21deg); z-index: 0;
}
html body:is(#notes-page,#pyqs-page) .library-hero__resource {
  position: absolute; display: grid; place-items: center;
  width: 68px; height: 78px; border: 1px solid rgba(255,255,255,.95);
  border-radius: 16px; background: linear-gradient(145deg,#fff,#e1ecff);
  color: #1464ef; box-shadow: 0 9px 16px rgba(62,119,212,.15); z-index: 3;
}
html body:is(#notes-page,#pyqs-page) .library-hero__resource lucide-icon { width: 36px; height: 36px; }
html body:is(#notes-page,#pyqs-page) .library-hero__resource--one { left: 0; top: 8%; transform: rotate(-14deg); }
html body:is(#notes-page,#pyqs-page) .library-hero__resource--two { right: 0; top: 20%; transform: rotate(12deg); color: #337aff; }
html body:is(#notes-page,#pyqs-page) .library-hero__resource--three { left: 0; bottom: 10%; width: 61px; height: 60px; transform: rotate(-10deg); color: #fff; background: #1764ef; }
@media (max-width: 1100px) and (min-width: 701px) {
  html body:is(#notes-page,#pyqs-page) .hero.library-hero { min-height: 450px; padding: 40px 30px 56px !important; gap: 20px; }
  html body:is(#notes-page,#pyqs-page):not(#_):not(#_) .library-hero .hero-text h1 { font-size: clamp(35px,4.1vw,46px) !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero .hero-text p { font-size: 14px !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper { height: 330px; }
  html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper > gyani-web { width: 390px !important; height: 390px !important; max-width: 100% !important; margin-top: -35px !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero__resource { width: 50px; height: 60px; }
  html body:is(#notes-page,#pyqs-page) .library-hero__resource lucide-icon { width: 29px; height: 29px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  html body#notes-page .hero.library-hero {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto auto auto;
    grid-template-areas: "text" "search" "mascot" !important;
    min-height: 0; padding: 36px 32px 40px !important;
    gap: 22px !important; text-align: center;
  }
  html body#notes-page .library-hero .hero-text { align-self: auto; justify-self: center; max-width: 580px; }
  html body#notes-page .library-hero .hero-text p { margin-inline: auto !important; }
  html body#notes-page .library-hero .search-section { max-width: 520px !important; justify-self: center; }
  html body#notes-page .library-hero .mascot-wrapper { width: 400px; height: 320px; margin: 0 auto -10px; }
  html body#notes-page .library-hero .mascot-wrapper > gyani-web { width: 430px !important; height: 430px !important; max-width: 115% !important; margin-top: -55px !important; }
  html body#notes-page .library-hero__watermark { top: auto; bottom: 15px; left: 23%; width: 54%; height: auto; }
}
@media (max-width: 700px) {
  html body:is(#notes-page,#pyqs-page) .hero.library-hero {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto auto auto;
    grid-template-areas: "text" "search" "mascot" !important;
    width: calc(100% - 28px) !important; min-height: 0; margin: 18px auto 28px !important;
    padding: 28px 20px 33px !important; gap: 20px !important; border-radius: 22px !important;
    text-align: center;
  }
  html body:is(#notes-page,#pyqs-page) .library-hero .hero-text { align-self: auto; }
  html body:is(#notes-page,#pyqs-page) .library-hero__badge { margin-bottom: 15px; min-height: 31px; font-size: 10px !important; }
  html body:is(#notes-page,#pyqs-page):not(#_):not(#_) .library-hero .hero-text h1 { font-size: clamp(32px,8vw,44px) !important; line-height: 1.1 !important; margin-bottom: 13px !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero .hero-text p { max-width: 420px; margin: 0 auto !important; font-size: 13px !important; line-height: 1.6 !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero .search-section { justify-self: center; max-width: 440px !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero .search-container input { min-height: 52px !important; height: 52px !important; padding-left: 43px !important; padding-right: 12px !important; font-size: 11.5px !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero .search-icon { left: 15px; width: 19px; height: 19px; }
  html body:is(#notes-page,#pyqs-page) .library-hero .search-icon svg { width: 19px; height: 19px; }
  html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper { width: min(100%,380px); height: 285px; margin: 0 auto -19px; }
  html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper > gyani-web { width: 330px !important; height: 330px !important; max-width: min(125%,calc(100vw - 28px)) !important; margin: -28px 0 0 !important; }
  html body#notes-page .library-hero .mascot-wrapper > gyani-web { width: 370px !important; height: 370px !important; margin-top: -52px !important; }
  html body:is(#notes-page,#pyqs-page) .library-hero__watermark { top: auto; bottom: 48px; left: 10%; width: 85%; height: auto; opacity: .055; }
  html body:is(#notes-page,#pyqs-page) .library-hero__resource { width: 48px; height: 57px; border-radius: 11px; }
  html body:is(#notes-page,#pyqs-page) .library-hero__resource lucide-icon { width: 27px; height: 27px; }
  html body:is(#notes-page,#pyqs-page) .library-hero__resource--one { top: 8%; left: 0; }
  html body:is(#notes-page,#pyqs-page) .library-hero__resource--two { top: 23%; right: 0; }
  html body:is(#notes-page,#pyqs-page) .library-hero__resource--three { width: 43px; height: 45px; bottom: 13%; left: 0; }
  html body:is(#notes-page,#pyqs-page) .library-hero__wave { bottom: -260px; height: 310px; }
  html body:is(#notes-page,#pyqs-page) .library-hero__wave--front { bottom: -287px; }
}
@media (max-width: 380px) {
  html body:is(#notes-page,#pyqs-page) .hero.library-hero { padding-inline: 15px !important; }
  html body#notes-page .library-hero .hero-text h1 > span { display: block; }
  html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper { height: 252px; }
  html body:is(#notes-page,#pyqs-page) .library-hero .mascot-wrapper > gyani-web { width: 295px !important; height: 295px !important; margin-top: -20px !important; }
  html body#notes-page .library-hero .mascot-wrapper > gyani-web { width: 330px !important; height: 330px !important; margin-top: -40px !important; }
}
