.ebook-library-reference .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ebook-library-reference .inner-hero {
  padding: clamp(118px, 9vw, 150px) 0 72px;
  background: linear-gradient(135deg, #fff 0 52%, #eff4ef 100%);
  overflow: hidden;
}

.ebook-library-reference .inner-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  z-index: 0;
  background: linear-gradient(145deg, transparent 0 24%, rgba(221, 231, 223, .46) 24.2% 100%);
  pointer-events: none;
}

.ebook-library-reference .inner-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
  column-gap: clamp(48px, 6vw, 92px);
  align-items: center;
  max-width: 1370px;
}

.ebook-library-reference .inner-hero .crumbs {
  display: none;
}

.ebook-library-reference .inner-hero .kicker,
.ebook-library-reference .inner-hero h1,
.ebook-library-reference .inner-hero .sub,
.ebook-library-reference .ebook-hero-stats {
  grid-column: 1;
}

.ebook-library-reference .inner-hero .kicker {
  margin: 0 0 24px;
  color: #075c48;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}

.ebook-library-reference .inner-hero h1 {
  max-width: none;
  margin: 0 0 22px;
  font-size: clamp(52px, 5.2vw, 76px);
  line-height: 1;
  letter-spacing: -.045em;
}

.ebook-library-reference .inner-hero .sub {
  max-width: 48ch;
  margin: 0;
  color: #3f4d46;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.55;
}

.ebook-library-reference .ebook-hero-art {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: stretch;
  min-height: 430px;
  border-radius: 4px;
  background: url('/shared/assets/images/ebook-library-hero-transparent.png') center / contain no-repeat;
  filter: saturate(.88);
}

.ebook-library-reference .ebook-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}

.ebook-library-reference .ebook-hero-stat {
  display: grid;
  grid-template-columns: 34px auto;
  column-gap: 10px;
  align-items: center;
  color: #173c31;
}

.ebook-library-reference .ebook-hero-stat img {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
}

.ebook-library-reference .ebook-hero-stat strong {
  color: #123b30;
  font-size: 15px;
  line-height: 1.15;
}

.ebook-library-reference .ebook-hero-stat span {
  color: #687870;
  font-size: 12px;
  line-height: 1.2;
}

.ebook-library-reference .ebooks {
  padding: 0 0 100px;
  background: #fff;
}

.ebook-library-reference .ebooks > .container {
  max-width: 1370px;
}

.ebook-library-reference .ebooks .intro {
  display: none;
}

.ebook-library-reference .ebook-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 20px;
  margin-left: 250px;
  padding: 34px 0 24px;
}

.ebook-library-reference .ebook-search,
.ebook-library-reference .ebook-sort {
  position: relative;
  display: block;
}

.ebook-library-reference .ebook-search > svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: #65746d;
  stroke-width: 1.7;
  pointer-events: none;
}

.ebook-library-reference .ebook-control {
  width: 100%;
  height: 54px;
  border: 1px solid #d8e1db;
  border-radius: 10px;
  background: #fff;
  color: #283a34;
  font: inherit;
  padding: 0 18px;
  outline: 0;
}

.ebook-library-reference .ebook-search .ebook-control {
  padding-left: 50px;
}

.ebook-library-reference .ebook-control:focus {
  border-color: #087358;
  box-shadow: 0 0 0 3px rgba(8, 115, 88, .1);
}

.ebook-library-reference .ebook-library-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.ebook-library-reference .ebook-sidebar {
  position: sticky;
  top: 106px;
  padding: 10px 0 0;
}

.ebook-library-reference .ebook-sidebar-title {
  display: block;
  margin: 0 0 14px;
  padding: 0 12px;
  color: #31413b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.ebook-library-reference .ebook-topic-list {
  display: grid;
  gap: 2px;
}

.ebook-library-reference .ebook-topic {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4c5a54;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.ebook-library-reference .ebook-topic:hover {
  background: #f3f6f3;
  color: #075b46;
}

.ebook-library-reference .ebook-topic[aria-pressed="true"] {
  background: #e9efea;
  color: #075b46;
  font-weight: 700;
}

.ebook-library-reference .ebook-topic-icon {
  width: 20px;
  height: 20px;
}

.ebook-library-reference .ebook-topic-count,
.ebook-library-reference .ebook-format-count {
  color: #75847d;
  font-size: 13px;
  font-weight: 500;
}

.ebook-library-reference .ebook-format {
  min-width: 0;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid #e2e8e3;
}

.ebook-library-reference .ebook-format legend {
  float: left;
  width: 100%;
}

.ebook-library-reference .ebook-format label {
  clear: both;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  color: #56665f;
  font-size: 14px;
  cursor: pointer;
}

.ebook-library-reference .ebook-format input {
  width: 16px;
  height: 16px;
  accent-color: #087358;
}

.ebook-library-reference .ebook-grid-wrap {
  min-width: 0;
  scroll-margin-top: 96px;
}

.ebook-library-reference .ebook-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.ebook-library-reference .ebook-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 16px 16px 20px !important;
  overflow: hidden !important;
  border: 1px solid #dce5de !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #17231f !important;
  box-shadow: none !important;
  transform: none !important;
  perspective: none !important;
  isolation: auto !important;
  transition: transform .24s ease, box-shadow .24s ease !important;
}

.ebook-library-reference .ebook-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 40px rgba(7, 54, 43, .09) !important;
}

.ebook-library-reference .ebook-card[hidden] {
  display: none !important;
}

.ebook-library-reference .ebook-thumb {
  width: 100% !important;
  height: 280px !important;
  display: grid !important;
  place-items: center;
  overflow: visible !important;
  border-radius: 9px !important;
  background: #f7f8f5 !important;
}

.ebook-library-reference .ebook-cover {
  position: relative;
  width: min(78%, 210px);
  height: 244px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 19px 17px 16px;
  border-radius: 3px 7px 7px 3px;
  background: #075b46;
  color: #fff;
  box-shadow: -5px 8px 16px rgba(11, 43, 34, .14), 10px 12px 22px rgba(11, 43, 34, .16);
  isolation: isolate;
}

.ebook-library-reference .ebook-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent);
}

.ebook-library-reference .ebook-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .2), transparent 34%);
}

.ebook-library-reference .ebook-cover-brand {
  font-size: 10px;
  font-weight: 600;
}

.ebook-library-reference .ebook-cover-title {
  max-width: 12ch;
  margin-top: 28px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.ebook-library-reference .ebook-cover-graphic {
  width: 94px;
  height: 94px;
  margin: auto -3px -5px auto;
  opacity: .96;
}

.ebook-library-reference .ebook-cover-graphic svg {
  width: 100%;
  height: 100%;
}

.ebook-library-reference .ebook-cover--red { background: #ef302f; color: #fff8d5; }
.ebook-library-reference .ebook-cover--violet { background: #29006c; color: #fff8d5; }
.ebook-library-reference .ebook-cover--green { background: #075a43; color: #fff; }
.ebook-library-reference .ebook-cover--sage { background: #e7eee5; color: #09523f; }
.ebook-library-reference .ebook-cover--blue { background: #dcecf5; color: #0b376a; }
.ebook-library-reference .ebook-cover--indigo { background: #1e306e; color: #fff; }
.ebook-library-reference .ebook-cover--sand { background: #f6e8d2; color: #173c31; }
.ebook-library-reference .ebook-cover--forest { background: #063f32; color: #fff; }

.ebook-library-reference .ebook-book-face,
.ebook-library-reference .ebook-book-pages {
  display: contents !important;
  transform: none !important;
}

.ebook-library-reference .ebook-body {
  width: 100%;
  min-width: 0;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 17px 0 0 !important;
}

.ebook-library-reference .ebook-body::before,
.ebook-library-reference .ebook-book-face::after {
  content: none !important;
}

.ebook-library-reference .ebook-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.ebook-library-reference .ebook-format-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: #edf4ef;
  color: #165b48;
  font-size: 11px;
  font-weight: 700;
}

.ebook-library-reference .ebook-bookmark {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #08634d;
  stroke-width: 1.6;
}

.ebook-library-reference .ebook-body h2 {
  margin: 0 0 9px !important;
  font-size: 20px !important;
  line-height: 1.22 !important;
  letter-spacing: -.018em !important;
}

.ebook-library-reference .ebook-summary {
  display: block;
  margin-bottom: 17px;
  color: #62716a;
  font-size: 14px;
  line-height: 1.48;
}

.ebook-library-reference .ebook-more {
  display: inline-flex !important;
  min-height: 36px !important;
  align-items: center;
  gap: 8px;
  margin-top: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #07664f !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.ebook-library-reference .ebook-more::before,
.ebook-library-reference .ebook-more::after {
  content: none !important;
}

.ebook-library-reference .ebook-card:hover .ebook-more svg {
  transform: translateX(3px);
}

.ebook-library-reference .ebook-empty-filter {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  min-height: 220px;
  place-content: center;
  padding: 40px 24px;
  border: 1px dashed #cddbd1;
  border-radius: 16px;
  color: #617169;
  text-align: center;
}

.ebook-library-reference .ebook-empty-filter[hidden] {
  display: none;
}

.ebook-library-reference .ebook-empty-filter strong {
  color: #1b2d26;
  font-size: 20px;
}

.ebook-library-reference .ebook-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
}

.ebook-library-reference .ebook-pagination[hidden] {
  display: none;
}

.ebook-library-reference .ebook-pagination button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #46564f;
  font: inherit;
  cursor: pointer;
}

.ebook-library-reference .ebook-pagination button:hover:not(:disabled) {
  background: #eef3ef;
}

.ebook-library-reference .ebook-pagination button[aria-current="page"] {
  background: #07664f;
  color: #fff;
}

.ebook-library-reference .ebook-pagination button:disabled {
  cursor: default;
  opacity: .35;
}

.ebook-library-reference .ebook-subscribe {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 48px 0 0;
  padding: 24px 32px;
  border: 1px solid #d7e2da;
  border-radius: 15px;
  background: linear-gradient(110deg, #f3f7f3, #eaf2ec);
}

.ebook-library-reference .ebook-subscribe-icon {
  width: 52px;
  height: 52px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #07664f;
  color: #fff;
}

.ebook-library-reference .ebook-subscribe-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.ebook-library-reference .ebook-subscribe strong {
  display: block;
  color: #17231f;
  font-size: 19px;
}

.ebook-library-reference .ebook-subscribe > div > span {
  display: block;
  color: #67776f;
  font-size: 14px;
}

.ebook-library-reference .ebook-subscribe a {
  min-width: 172px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-left: auto;
  padding: 12px 22px;
  border-radius: 8px;
  background: #07664f;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .ebook-library-reference .inner-hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr);
  }

  .ebook-library-reference .ebook-toolbar {
    margin-left: 0;
  }

  .ebook-library-reference .ebook-library-shell {
    grid-template-columns: 1fr;
  }

  .ebook-library-reference .ebook-sidebar {
    position: static;
    display: grid;
    gap: 16px;
    padding: 0 0 22px;
  }

  .ebook-library-reference .ebook-topic-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 6px;
    scrollbar-width: thin;
  }

  .ebook-library-reference .ebook-topic {
    width: auto;
    flex: 0 0 auto;
    grid-template-columns: 20px auto auto;
    border: 1px solid #dce5de;
  }

  .ebook-library-reference .ebook-format {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 15px 0 0;
  }

  .ebook-library-reference .ebook-format legend {
    margin-bottom: 8px;
  }

  .ebook-library-reference .ebook-format label {
    min-width: 130px;
    grid-template-columns: 18px auto auto;
    padding: 4px 0;
  }
}

@media (max-width: 820px) {
  .ebook-library-reference .inner-hero {
    padding: 104px 0 58px;
  }

  .ebook-library-reference .inner-hero::after {
    inset: 47% 0 0;
  }

  .ebook-library-reference .inner-hero .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ebook-library-reference .inner-hero h1 {
    font-size: clamp(46px, 12vw, 62px);
  }

  .ebook-library-reference .ebook-hero-art {
    order: 5;
    min-height: 310px;
    margin-top: 34px;
    border-radius: 16px;
  }

  .ebook-library-reference .ebook-hero-stats {
    gap: 18px;
  }

  .ebook-library-reference .ebook-hero-stat {
    width: calc(50% - 9px);
  }

  .ebook-library-reference .ebook-toolbar {
    grid-template-columns: 1fr 190px;
    padding-top: 24px;
  }

  .ebook-library-reference .ebook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ebook-library-reference .ebook-subscribe {
    flex-wrap: wrap;
  }

  .ebook-library-reference .ebook-subscribe a {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .ebook-library-reference .inner-hero .kicker {
    margin-bottom: 18px;
  }

  .ebook-library-reference .inner-hero h1 {
    font-size: 46px;
  }

  .ebook-library-reference .ebook-hero-art {
    min-height: 250px;
  }

  .ebook-library-reference .ebook-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ebook-library-reference .ebook-hero-stat {
    width: auto;
  }

  .ebook-library-reference .ebook-toolbar {
    grid-template-columns: 1fr;
  }

  .ebook-library-reference .ebook-grid {
    grid-template-columns: 1fr !important;
  }

  .ebook-library-reference .ebook-thumb {
    height: 300px !important;
  }

  .ebook-library-reference .ebook-cover {
    width: min(70%, 220px);
    height: 264px;
  }

  .ebook-library-reference .ebook-subscribe {
    align-items: flex-start;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebook-library-reference .ebook-card,
  .ebook-library-reference .ebook-more svg {
    transition: none !important;
  }
}
