.knowledge-library {
  --ink: #14243f;
  --muted: #62728a;
  --line: #e1e9f6;
  --blue: #2161ed;
  color: var(--ink);
}
.knowledge-library [hidden] {
  display: none !important;
}
.knowledge-library a:focus-visible,
.knowledge-library button:focus-visible,
.knowledge-library input:focus-visible {
  outline: 3px solid #2161ed;
  outline-offset: 5px;
}
.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-hero {
  padding-top: 42px;
}
.library-hero .breadcrumb {
  margin-bottom: 40px;
}
.library-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  padding-bottom: 50px;
}
.library-hero h1 {
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.4;
  letter-spacing: -1.8px;
  margin: 18px 0 0;
}
.library-hero h1 span,
.guides-section h2 span {
  color: var(--blue);
}
.library-intro {
  max-width: 350px;
  padding-bottom: 12px;
}
.library-intro p {
  color: var(--muted);
  line-height: 2;
  font-size: 16px;
}
.library-intro a {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  color: var(--blue);
  font-size: 14px;
  margin-top: 18px;
}
.library-jump {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.library-jump > a {
  padding: 18px 0;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  display: flex;
  gap: 12px;
}
.library-jump .is-active {
  color: var(--blue);
  border-color: var(--blue);
}
.library-jump > a span {
  font-size: 11px;
  color: var(--muted);
  align-self: center;
}
.library-signature {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--muted);
}
.articles-section {
  padding-block: 60px 80px;
  scroll-margin-top: 110px;
}
.library-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 28px;
}
.library-section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.5;
  margin: 10px 0 0;
  letter-spacing: -0.8px;
}
.library-section-heading > p {
  max-width: 350px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}
.library-section-heading > p small {
  font-size: 12px;
}
.library-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  width: 310px;
  height: 50px;
}
.library-search > span[aria-hidden] {
  font-size: 28px;
  color: var(--muted);
}
.library-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.library-search:focus-within {
  border-color: var(--blue);
}
.library-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.library-filters button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 20px;
  min-height: 44px;
  background: white;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}
.library-filters button:hover {
  background: #f0f5ff;
  color: var(--blue);
}
.library-filters button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.library-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
  font-size: 12px;
  color: var(--muted);
}
.library-results-bar p {
  margin: 0;
}
.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  transition: opacity 0.15s;
}
.reading-grid[aria-busy="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.reading-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.reading-card:hover {
  box-shadow: 0 14px 35px #14243f0c;
  transform: translateY(-3px);
}
.reading-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.65;
  background: #edf2f9;
}
.reading-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.reading-card:hover img {
  transform: scale(1.035);
}
.reading-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.reading-category {
  color: var(--blue);
  font-size: 11px;
}
.reading-body h3 {
  font-size: 21px;
  line-height: 1.7;
  margin: 13px 0 10px;
  font-weight: 500;
}
.reading-body h3 a:hover {
  color: var(--blue);
}
.reading-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
  margin: 0 0 24px;
}
.reading-link {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--blue);
}
.reading-link span {
  font-size: 20px;
}
.article-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
  padding-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.article-stats svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.article-stat,
.article-like {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.article-like {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 10px 6px;
  margin-inline-start: -6px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}
.article-like:hover {
  background: #f0f5ff;
  color: var(--blue);
}
.article-like[aria-pressed="true"] {
  color: var(--blue);
}
.article-like[aria-pressed="true"] svg {
  fill: currentColor;
}
.article-reading-time {
  margin-inline-start: auto;
}
.article-stats + .reading-link {
  margin-top: 0;
}
.reading-grid {
  scroll-margin-top: 115px;
}
.reading-grid:focus {
  outline: none;
}
.library-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 26px;
}
.library-pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  font: inherit;
  font-size: 13px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.pagination-controls button:hover:not(:disabled) {
  background: #edf3ff;
  border-color: #c7d7f7;
}
.pagination-controls button[aria-current="page"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.pagination-controls button[aria-current="page"]:hover {
  background: var(--blue);
}
.pagination-controls button:disabled {
  color: #8591a3;
  background: #f7f9fc;
  cursor: default;
}
.pagination-gap {
  color: var(--muted);
}
@media (max-width: 650px) {
  .library-pagination {
    flex-direction: column;
    gap: 16px;
  }
  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .pagination-controls button {
    padding: 9px 11px;
  }
}
.library-state {
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 50px 20px;
}
.library-state h3 {
  font-size: 24px;
  margin: 0;
}
.library-state p {
  color: var(--muted);
  margin: 14px 0 24px;
}
.guides-section {
  background: #f4f7fc;
  border-block: 1px solid var(--line);
  padding: 75px 0 85px;
  scroll-margin-top: 95px;
}
.guides-section .library-section-heading {
  margin-bottom: 40px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.guide-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.guide-art {
  height: 305px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #e8efff;
  overflow: hidden;
}
.guide-navy {
  background: #e5eaf1;
}
.guide-pale {
  background: #edf0f7;
}
.guide-book {
  width: 185px;
  height: 270px;
  background: var(--blue);
  color: white;
  border-radius: 2px 6px 6px 2px;
  box-shadow: -10px 14px 22px #14243f26;
  transform: rotate(-7deg);
  position: relative;
  overflow: hidden;
  border-inline-start: 6px solid #ffffff30;
  transition: transform 0.3s;
}
.guide-navy .guide-book {
  background: #14243f;
  transform: rotate(6deg);
}
.guide-pale .guide-book {
  background: #fff;
  color: var(--ink);
}
.guide-card:hover .guide-book {
  transform: rotate(0deg) translateY(-4px);
}
.guide-book img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.guide-book-copy {
  padding: 14px 17px;
}
.guide-book-copy small {
  font-size: 7px;
  letter-spacing: 0.2px;
  opacity: 0.8;
}
.guide-book-copy strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  margin: 10px 0;
}
.guide-book-copy > span {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  border-top: 1px solid #ffffff40;
  padding-top: 10px;
}
.guide-book-copy b {
  font-weight: 400;
}
.guide-format {
  position: absolute;
  left: 18px;
  top: 18px;
  background: #ffffffcc;
  border-radius: 5px;
  padding: 5px 9px;
  font: 10px Arial;
  letter-spacing: 1px;
  color: var(--muted);
}
.guide-body {
  padding: 25px;
}
.guide-body h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  margin: 12px 0;
}
.guide-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  min-height: 50px;
  margin-bottom: 24px;
}
.guide-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 17px;
  color: var(--blue);
  font-size: 13px;
  min-height: 48px;
}
.guide-download:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.guide-download > span[aria-hidden] {
  font-size: 20px;
}
.library-bottom {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-block: 60px;
}
.library-bottom-icon {
  font-size: 48px;
  color: var(--blue);
}
.library-bottom h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 10px;
}
.library-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.library-bottom > a {
  margin-inline-start: auto;
}
@media (max-width: 1000px) {
  .reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-hero-row {
    gap: 30px;
  }
  .library-intro {
    max-width: 300px;
  }
  .guide-grid {
    gap: 16px;
  }
  .guide-body {
    padding: 20px;
  }
  .guide-body h3 {
    font-size: 19px;
  }
  .guide-book {
    width: 160px;
    height: 265px;
  }
  .guide-book-copy strong {
    font-size: 20px;
  }
  .guide-art {
    height: 315px;
  }
  .library-bottom {
    gap: 18px;
  }
  .library-bottom h2 {
    font-size: 20px;
  }
}
@media (max-width: 650px) {
  .library-hero {
    padding-top: 25px;
  }
  .library-hero .breadcrumb {
    margin-bottom: 28px;
  }
  .library-hero-row {
    display: block;
    padding-bottom: 28px;
  }
  .library-hero h1 {
    font-size: 39px;
    letter-spacing: -1px;
  }
  .library-intro {
    max-width: none;
    margin-top: 20px;
  }
  .library-intro p {
    font-size: 14px;
  }
  .library-intro a {
    margin-top: 10px;
  }
  .library-signature {
    display: none;
  }
  .library-jump {
    gap: 30px;
  }
  .library-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
  .library-search {
    width: 100%;
  }
  .library-section-heading h2 {
    font-size: 29px;
  }
  .articles-section {
    padding-block: 38px 45px;
  }
  .library-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 3px 12px;
    margin-inline: -3px;
    scrollbar-width: thin;
  }
  .library-filters button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 15px;
    font-size: 12px;
  }
  .library-results-bar > span {
    display: none;
  }
  .reading-grid,
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .reading-body {
    padding: 23px;
  }
  .reading-body h3 {
    font-size: 22px;
  }
  .guides-section {
    padding-block: 45px;
  }
  .guides-section .library-section-heading {
    gap: 8px;
    margin-bottom: 28px;
  }
  .guide-art {
    height: 310px;
  }
  .guide-book {
    width: 190px;
    height: 275px;
  }
  .guide-book-copy strong {
    font-size: 23px;
  }
  .guide-body {
    padding: 24px;
  }
  .guide-body h3 {
    font-size: 22px;
  }
  .guide-body p {
    min-height: 0;
  }
  .library-bottom {
    flex-wrap: wrap;
    padding-block: 38px;
    gap: 16px;
  }
  .library-bottom-icon {
    font-size: 35px;
  }
  .library-bottom > div {
    flex: 1;
  }
  .library-bottom > a {
    margin-inline-start: 0;
    width: 100%;
    justify-content: center;
  }
  .library-bottom h2 {
    font-size: 20px;
    line-height: 1.6;
  }
  .library-bottom p {
    line-height: 1.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reading-card,
  .reading-image img,
  .reading-grid,
  .guide-book {
    transition: none;
  }
  .reading-card:hover,
  .reading-card:hover img,
  .guide-card:hover .guide-book {
    transform: none;
  }
}
