.desk-library main,
.desk-exam main,
.desk-question main,
.desk-study main {
  background: #f4f7fa;
  color: #052965;
}

.desk-library h1,
.desk-exam h2,
.desk-question h2,
.desk-question h3,
.sheet-card h3 {
  font-family: "Libre Baskerville", Palatino, serif;
  font-weight: 400;
}

.catalog-head {
  background: #ffffff;
  border-bottom: 1px solid #052965;
}

.catalog-search {
  width: 100%;
  max-width: 22rem;
  border: 1px solid #052965;
  background: #ffffff;
  color: #052965;
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.catalog-search:focus {
  outline: 2px solid #052965;
  outline-offset: 1px;
}

.catalog-count {
  margin: 0.4rem 0 0;
  color: #4a6280;
  font-size: 0.85rem;
}

.desk-library .schoolDetail {
  background: #ffffff;
  border: 1px solid #052965;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0.85rem;
}

.desk-library .schoolDetail > summary {
  padding: 1rem 1.1rem;
}

.desk-library .courseDetail {
  border: 1px solid #c9d6e2;
  border-radius: 0;
  background: #f4f7fa;
  box-shadow: none;
}

.shelf {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  color: #3d4741;
  font-size: 0.92rem;
}

.crumbs a {
  color: #052965;
  text-decoration: none;
  border-bottom: 1px solid #02ab96;
}

.shelf h1 {
  font-family: "Libre Baskerville", Palatino, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.2;
  color: #052965;
  margin: 0 0 0.6rem;
}

.shelf .lede {
  color: #3d4741;
  margin: 0 0 1.2rem;
}

.shelf-list {
  display: grid;
  gap: 0.75rem;
}

.shelf-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #ffffff;
  color: #052965;
  border: 1px solid #052965;
  padding: 1rem 1rem 0.9rem;
  text-decoration: none;
  min-height: 4.5rem;
}

.shelf-link strong {
  color: #052965;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shelf-link span {
  color: #3d4741;
  font-size: 0.95rem;
}

.shelf-link:hover,
.shelf-link:focus {
  background: #e7eef3;
  color: #052965;
}

@media (min-width: 900px) {
  .shelf-list {
    grid-template-columns: 1fr 1fr;
  }
}

.desk-library .w-12.h-12,
.desk-library .w-8.h-8.bg-primary,
.desk-library .bg-secondary {
  background: #052965;
  border-radius: 0;
  box-shadow: none;
}

.desk-exam .exam-bar,
.desk-question .exam-bar {
  background: #ffffff;
  border-bottom: 1px solid #052965;
  position: sticky;
  top: 4.7rem;
  z-index: 30;
}

.desk-exam .exam-bar h2 {
  font-family: "Libre Baskerville", Palatino, serif;
  font-weight: 400;
  color: #052965 !important;
}

.q-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.desk-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  border: 1px solid #052965;
  padding: 0.2rem 0.45rem;
  font-size: 0.85rem;
}

.sheet-card {
  background: #ffffff !important;
  border: 1px solid #052965 !important;
  box-shadow: none !important;
  max-width: 48rem;
  margin: 1.25rem auto;
}

.q-kicker {
  background: transparent !important;
  color: #02ab96 !important;
  border: 1px solid #02ab96;
  border-radius: 0 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desk-exam #pills-container button,
.desk-question #pills-container button {
  border-radius: 0;
  border-color: #c9d6e2;
  background: #ffffff;
}

.desk-exam #pills-container button.ring-2,
.desk-question #pills-container button.ring-primary {
  outline: 2px solid #052965;
  outline-offset: 1px;
}

.desk-exam .question,
.desk-question .question,
.desk-exam #extarct,
.desk-question #extarct {
  color: #052965;
  overflow-wrap: anywhere;
}

.exam-split {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.desk-exam button[id^="choice"],
.desk-question button[id^="choice"],
.desk-exam button[id^="choice"] span,
.desk-question button[id^="choice"] span {
  color: #052965;
}

.desk-exam button[id^="choice"],
.desk-question button[id^="choice"] {
  border-radius: 0;
  border-width: 1px;
  border-color: #052965;
  background: #ffffff;
}

.desk-exam button[id^="choice"] > span:first-child,
.desk-question button[id^="choice"] > span:first-child {
  border-radius: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-color: #052965;
  color: #052965;
}

.desk-exam button[id^="choice"].is-struck,
.desk-question button[id^="choice"].is-struck {
  opacity: 0.45;
  text-decoration: line-through;
}

.desk-exam #submitButton,
.desk-exam #nextButton,
.desk-question #submitButton,
.desk-question #nextButton {
  background: #052965 !important;
  color: #ffffff !important;
  border-radius: 0;
  border: 1px solid #031a42;
}

.desk-exam #previousButton,
.desk-question #previousButton {
  border-radius: 0;
  border-color: #052965;
  background: transparent;
}

.desk-exam #overlay > div,
.desk-question #overlay > div {
  border-radius: 0;
  border: 1px solid #052965;
  background: #ffffff;
  box-shadow: none;
}

.desk-exam .q-rail,
.desk-question .q-rail {
  background: #ffffff;
  border-color: #052965;
}

.flag-on {
  color: #02ab96;
}

.keys-note {
  width: 100%;
  margin-top: 0.8rem;
  color: #4a6280;
  font-size: 0.8rem;
}

#question_type {
  background: #ffffff;
  color: #02ab96;
  border: 1px solid #02ab96;
  border-radius: 0;
  letter-spacing: 0.08em;
}

@media (max-width: 1023px) {
  .desk-exam #pills-container {
    display: flex;
    max-height: none;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .desk-exam #pills-container button {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
  }

  .sheet-card {
    margin: 0.75rem;
    padding: 1rem !important;
  }
}

@media (min-width: 1024px) {
  .exam-split {
    flex-direction: row;
    align-items: flex-start;
  }

  .desk-exam .q-rail {
    width: 18rem;
    flex: 0 0 18rem;
    position: sticky;
    top: 8.6rem;
    max-height: calc(100vh - 5rem);
    overflow: auto;
  }
}

.desk-library .catalog-miss {
  display: none;
}

.shelf-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.shelf-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.free-note {
  margin: 0 0 1rem;
  color: #3d4741;
}

#paywall.hidden {
  display: none;
}

.paywall {
  border: 1px solid #052965;
  background: #f4f7fa;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.paywall h2 {
  margin: 0 0 0.4rem;
}

.paywall .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  background: #052965;
  color: #ffffff;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border: 1px solid #031a42;
}

.paywall .btn-quiet,
.shelf .btn-quiet {
  background: transparent;
  color: #052965;
  border-color: #052965;
}

.shelf .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.shelf .btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  background: #052965;
  color: #ffffff;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border: 1px solid #031a42;
}

#pills-container button.is-locked {
  background: #e7eef3;
  color: #4a6280;
}

@media (max-width: 800px) {
  .shelf-intro {
    grid-template-columns: 1fr;
  }
}

button.answer-right,
button.answer-wrong {
  border-width: 2px;
  border-style: solid;
}

button.answer-right {
  background: #dcfce7 !important;
  border-color: #15803d !important;
  color: #14532d !important;
}

button.answer-right .rounded-full,
button.answer-right span:first-child {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #fff !important;
}

button.answer-wrong {
  background: #fee2e2 !important;
  border-color: #b91c1c !important;
  color: #7f1d1d !important;
}

button.answer-wrong .rounded-full,
button.answer-wrong span:first-child {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #fff !important;
}
