/* Simran Mehta — Author library (editorial catalogue) */
.library {
  --amz-bg: #ffffff;
  --amz-ink: #0f1111;
  --amz-muted: #565959;
  --amz-line: #e7e7e7;
  --amz-blue: #007185;
  --amz-orange: #f08804;
  --amz-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.library {
  min-height: 100vh;
  font-family: var(--amz-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--amz-ink);
  background: var(--amz-bg);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--lib-header) + 24px);
}

.library *,
.library *::before,
.library *::after { box-sizing: border-box; }

.library img { display: block; max-width: 100%; height: auto; }
.library a { color: inherit; text-decoration: none; }
.library ul { list-style: none; margin: 0; padding: 0; }

.library :focus-visible {
  outline: 2px solid var(--lib-accent);
  outline-offset: 3px;
}

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

.library-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.library-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lib-accent);
}

/* ─── Header ─── */
.library-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 40, 32, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.library-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--lib-header);
}

.library-header__brand {
  font-family: var(--lib-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.library-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.library-header__nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s var(--lib-ease);
}

.library-header__nav a:hover,
.library-header__nav a.is-active {
  color: #fff;
}

.library-header__cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--lib-accent);
  color: #fff !important;
}

.library-header__cta:hover {
  background: var(--lib-accent-deep);
}

.library-header__menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.library-header__menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 2px;
}

/* ─── Hero ─── */
.library-hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 92, 62, 0.1), transparent 55%),
    linear-gradient(180deg, #ebe6dc 0%, var(--lib-bg) 100%);
}

.library-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.library-hero__copy h1 {
  margin: 0 0 18px;
  font-family: var(--lib-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.library-hero__lede {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--lib-muted);
}

.library-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 28px;
}

.library-hero__stats li {
  font-size: 0.95rem;
  color: var(--lib-muted);
}

.library-hero__stats strong {
  display: block;
  font-family: var(--lib-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lib-ink);
}

.library-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.library-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s var(--lib-ease), background 0.2s var(--lib-ease), color 0.2s var(--lib-ease);
}

.library-btn--primary {
  background: var(--lib-forest);
  color: #fff;
}

.library-btn--primary:hover {
  background: var(--lib-forest-soft);
  transform: translateY(-1px);
}

.library-btn--ghost {
  border: 1px solid var(--lib-line);
  background: var(--lib-surface);
  color: var(--lib-ink);
}

.library-btn--ghost:hover {
  border-color: rgba(26, 36, 32, 0.22);
}

.library-hero__portrait {
  margin: 0;
  justify-self: end;
  width: min(360px, 100%);
}

.library-hero__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(20, 40, 32, 0.16);
}

/* ─── Section heads ─── */
.library-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.library-section-head h2 {
  margin: 0;
  font-family: var(--lib-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
}

.library-section-head__note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.98rem;
  color: var(--lib-muted);
  text-align: right;
}

/* ─── Reader picks (upgraded) ─── */
.library-picks {
  padding: 40px 0 72px;
  border-top: 1px solid var(--lib-line);
  border-bottom: 1px solid var(--lib-line);
  background: linear-gradient(to bottom, rgba(20,40,32,0.015), transparent);
}

.library-picks__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.library-picks__head h2 {
  margin: 4px 0 0;
  font-family: var(--lib-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.35rem);
  font-weight: 600;
}

.library-picks__head p {
  margin: 0;
  max-width: 42ch;
  font-size: 0.98rem;
  color: var(--lib-muted);
  text-align: right;
}

.library-picks__featured {
  margin-bottom: 32px;
}

.library-pick-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px;
  background: var(--lib-surface);
  border: 1px solid var(--lib-line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(20, 40, 32, 0.07);
}

.library-pick-featured__cover {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(20, 40, 32, 0.18);
  transition: transform 0.4s var(--lib-ease), box-shadow 0.4s var(--lib-ease);
}

.library-pick-featured:hover .library-pick-featured__cover {
  transform: translateY(-2px);
  box-shadow: 0 22px 56px rgba(20, 40, 32, 0.22);
}

.library-pick-featured__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--lib-ease);
}

.library-pick-featured:hover .library-pick-featured__cover img {
  transform: scale(1.035);
}

.library-pick-featured__body {
  min-width: 0;
}

.library-pick-featured__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(196, 92, 62, 0.12);
  color: var(--lib-accent);
  margin-bottom: 12px;
}

.library-pick-featured h3 {
  margin: 0 0 12px;
  font-family: var(--lib-serif);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.2;
  font-weight: 600;
}

.library-pick-featured h3 a:hover {
  color: var(--lib-accent);
}

.library-pick-featured__blurb {
  margin: 0 0 18px;
  font-size: 1.01rem;
  line-height: 1.45;
  color: var(--lib-muted);
  max-width: 58ch;
}

.library-pick-featured__actions {
  margin-top: 8px;
}

.library-picks__companions {
  margin-top: 8px;
}

.library-picks__companions-head {
  margin-bottom: 14px;
}

.library-picks__companions-head span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lib-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--lib-line);
}

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

.library-pick-companion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--lib-surface);
  border: 1px solid var(--lib-line);
  border-radius: 16px;
  transition: transform 0.25s var(--lib-ease), box-shadow 0.25s var(--lib-ease);
}

.library-pick-companion:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 40, 32, 0.09);
}

.library-pick-companion__cover {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 40, 32, 0.1);
}

.library-pick-companion__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--lib-ease);
}

.library-pick-companion:hover .library-pick-companion__cover img {
  transform: scale(1.04);
}

.library-pick-companion__body {
  padding: 2px 4px 4px;
}

.library-pick-companion h4 {
  margin: 0 0 4px;
  font-family: var(--lib-serif);
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 600;
}

.library-pick-companion h4 a:hover {
  color: var(--lib-accent);
}

.library-pick-companion__price {
  display: block;
  font-size: 0.82rem;
  color: var(--lib-muted);
  margin-bottom: 6px;
}

/* ─── Catalogue toolbar ─── */
.library-catalog {
  padding-bottom: 72px;
}

.library-toolbar {
  position: sticky;
  top: var(--lib-header);
  z-index: 30;
  margin-bottom: 24px;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--lib-line);
}

.library-toolbar.is-stuck {
  box-shadow: 0 10px 30px rgba(20, 40, 32, 0.06);
}

.library-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.library-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--lib-line);
  border-radius: 999px;
  background: var(--lib-surface);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lib-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.library-filter span {
  font-size: 0.82rem;
  color: var(--lib-muted);
}

.library-filter.is-active {
  border-color: var(--lib-forest);
  background: var(--lib-forest);
  color: #fff;
}

.library-filter.is-active span {
  color: rgba(255, 255, 255, 0.75);
}

.library-toolbar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(280px, 100%);
  padding: 0 14px;
  border: 1px solid var(--lib-line);
  border-radius: 999px;
  background: var(--lib-surface);
  color: var(--lib-muted);
}

.library-toolbar__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--lib-ink);
}

.library-toolbar__search input::placeholder {
  color: #8a9791;
}

.library-toolbar__clear {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--lib-muted);
  cursor: pointer;
}

.library-catalog__count {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--lib-muted);
}

.library-catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.library-catalog__empty {
  margin-top: 24px;
  text-align: center;
  color: var(--lib-muted);
}

.library-catalog__empty a {
  color: var(--lib-accent);
  text-decoration: underline;
}

/* ─── Book cards ─── */
.library-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: var(--lib-radius);
  background: var(--lib-surface);
  border: 1px solid var(--lib-line);
  transition: transform 0.25s var(--lib-ease), box-shadow 0.25s var(--lib-ease);
}

.library-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(20, 40, 32, 0.08);
}

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

.library-card__cover {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.library-card__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.library-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.library-card__genre {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 40, 32, 0.06);
  font-weight: 600;
  color: var(--lib-forest);
}

.library-card__price {
  color: var(--lib-muted);
}

.library-card h3 {
  margin: 0;
  font-family: var(--lib-serif);
  font-size: 1.08rem;
  line-height: 1.3;
}

.library-card h3 a:hover {
  color: var(--lib-accent);
}

.library-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--lib-line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lib-ink);
  transition: border-color 0.2s, background 0.2s;
}

.library-format span {
  font-weight: 500;
  color: var(--lib-muted);
}

.library-format:hover {
  border-color: var(--lib-accent);
  background: rgba(196, 92, 62, 0.06);
}

.library-format--compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}

/* ─── FAQ ─── */
.library-faq {
  padding: 24px 0 80px;
  background: linear-gradient(180deg, transparent, rgba(20, 40, 32, 0.04));
}

.library-faq__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.library-faq__intro h2 {
  margin: 0 0 12px;
  font-family: var(--lib-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.library-faq__intro p:last-child {
  margin: 0;
  color: var(--lib-muted);
}

.library-faq__item {
  border-top: 1px solid var(--lib-line);
}

.library-faq__item:last-child {
  border-bottom: 1px solid var(--lib-line);
}

.library-faq__item summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.library-faq__item summary::-webkit-details-marker {
  display: none;
}

.library-faq__answer {
  padding: 0 0 18px;
  color: var(--lib-muted);
}

.library-faq__answer p {
  margin: 0;
}

.library-faq__answer a {
  color: var(--lib-accent);
  text-decoration: underline;
}

/* ─── Footer ─── */
.library-footer {
  padding: 28px 0 36px;
  background: var(--lib-forest);
  color: rgba(255, 255, 255, 0.82);
}

.library-footer__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.library-footer__name {
  margin: 0 0 6px;
  font-family: var(--lib-serif);
  font-size: 1.3rem;
  color: #fff;
}

.library-footer__note {
  margin: 0;
  font-size: 0.92rem;
}

.library-footer__actions {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
  font-size: 0.88rem;
}

.library-footer__actions a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .library-hero__grid {
    grid-template-columns: 1fr;
  }

  .library-hero__portrait {
    justify-self: start;
    width: min(280px, 100%);
  }

  .library-pick-featured {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

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

  .library-picks__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .library-picks__head p {
    text-align: left;
  }

  .library-faq__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .library-shell {
    width: min(1180px, calc(100% - 28px));
  }

  .library-header__menu {
    display: block;
  }

  .library-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: var(--lib-forest);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .library-header__nav.is-open {
    display: flex;
  }

  .library-header__nav a {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .library-header__cta {
    text-align: center;
  }

  .library-header {
    position: relative;
  }

  .library-toolbar {
    top: 0;
  }

  .library-toolbar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .library-toolbar__search {
    min-width: 0;
  }

  .library-picks__grid {
    grid-template-columns: 1fr;
  }

  .library-pick-featured {
    padding: 16px;
  }

  .library-footer__inner {
    flex-direction: column;
    align-items: start;
  }

  .library-footer__actions {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ========== Amazon author page style (ditto the linked store) ========== */
.amz-header {
  border-bottom: 1px solid var(--amz-line);
  background: #fff;
}

.amz-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.amz-header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amz-header__site {
  font-size: 12px;
  font-weight: 600;
  color: var(--amz-muted);
  text-decoration: none;
}

.amz-header__site:hover { color: var(--amz-blue); }

.amz-header__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--amz-ink);
}

.amz-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.amz-header__nav a {
  font-size: 13px;
  color: var(--amz-muted);
  text-decoration: none;
}

.amz-header__nav a:hover,
.amz-header__nav a.is-active {
  color: var(--amz-ink);
  font-weight: 600;
}

.amz-header__store {
  font-size: 13px;
  color: var(--amz-blue) !important;
  text-decoration: none;
}
.amz-header__store:hover { text-decoration: underline; }

.amz-header .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 999px;
  border: 1px solid var(--amz-line);
  background: #fff;
}

.amz-header .lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--amz-muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 7px;
  border-radius: 999px;
  cursor: pointer;
}

.amz-header .lang-switch__btn.is-active {
  background: #142820;
  color: #fff;
}

.amz-main {
  background: #fff;
}

.amz-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.amz-author-name {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 20px;
  color: var(--amz-ink);
}

.amz-most-popular {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--amz-line);
}

.amz-mp__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--amz-muted);
  margin-bottom: 8px;
  letter-spacing: .5px;
}

.amz-mp__content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.amz-mp__cover {
  display: block;
  width: 240px;
  max-width: 240px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.amz-mp__cover img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}

.amz-mp__meta {
  flex: 1;
  min-width: 0;
}

.amz-mp__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--amz-blue);
  line-height: 1.3;
  margin-bottom: 6px;
}

.amz-mp__rating {
  font-size: 12px;
  color: var(--amz-muted);
  margin-bottom: 6px;
}

.amz-stars {
  color: #f1c40f;
  letter-spacing: 1px;
}

.amz-mp__price-line {
  font-size: 14px;
  margin-top: 4px;
}

.amz-mp__price {
  font-weight: 700;
  color: var(--amz-ink);
}

.amz-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--amz-ink);
}

.amz-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--amz-line);
}

.amz-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.amz-filter {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--amz-line);
  background: #fff;
  color: var(--amz-ink);
  border-radius: 3px;
  cursor: pointer;
}

.amz-filter.is-active {
  background: #f0f2f2;
  border-color: #888;
  font-weight: 600;
}

.amz-search {
  position: relative;
  margin-left: auto;
}

.amz-search input {
  width: 220px;
  font-size: 13px;
  padding: 6px 28px 6px 10px;
  border: 1px solid #888;
  border-radius: 3px;
}

.amz-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  color: #666;
}

.amz-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 18px;
}

.amz-card {
  display: flex;
  flex-direction: column;
}

.amz-card__cover {
  display: block;
  width: 100%;
  margin-bottom: 6px;
}

.amz-card__cover img {
  width: 100%;
  height: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}

.amz-card__info {
  font-size: 12px;
  line-height: 1.35;
}

.amz-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  color: var(--amz-blue);
  line-height: 1.3;
  margin-bottom: 2px;
}

.amz-card__author {
  color: var(--amz-muted);
  margin-bottom: 2px;
}

.amz-card__rating {
  font-size: 11px;
  margin-bottom: 2px;
}

.amz-stars {
  color: #f1c40f;
  margin-right: 4px;
}

.amz-review-count {
  color: var(--amz-muted);
}

.amz-card__format {
  font-size: 12px;
  margin-top: 2px;
  color: var(--amz-muted);
}

.amz-card__price {
  font-weight: 700;
  color: var(--amz-ink);
}

.amz-empty {
  margin-top: 20px;
  color: var(--amz-muted);
}

.amz-footer {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid var(--amz-line);
  font-size: 12px;
  color: var(--amz-muted);
}

.amz-footer a {
  color: var(--amz-blue);
}

@media (max-width: 600px) {
  .amz-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px 14px;
  }

  .amz-mp__cover {
    width: 170px;
    max-width: 170px;
  }

  .amz-mp__content {
    gap: 16px;
  }
}

/* hide old elements if any remnants */
.library-hero,
.library-picks,
.library-catalog,
.library-faq,
.library-footer {
  display: none !important;
}
/* Site breadcrumbs */
.library .breadcrumb {
  margin: 0 0 16px;
  font-size: 0.85rem;
}
.library .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.library .breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--amz-muted);
  opacity: 0.7;
}
.library .breadcrumb a { color: var(--amz-blue); }
.library .breadcrumb a:hover { text-decoration: underline; }
.library .breadcrumb li[aria-current="page"] { color: var(--amz-muted); font-weight: 500; }
