/* The article library has its own layout, independent of the reading template. */
.insights-library { background: #f8f7fb; }
.library-wrap { width: min(1280px, 88%); margin-inline: auto; }
.library-intro { background: #201e31; color: #fff; padding: 64px 0 58px; position: relative; overflow: hidden; }
.library-intro::after { content: ''; position: absolute; width: 460px; height: 460px; border: 1px solid #ffffff0c; border-radius: 50%; right: -220px; top: -230px; pointer-events: none; }
.library-intro .eyebrow { color: #c7b9f5; letter-spacing: .16em; display: flex; align-items: center; gap: 12px; }
.library-intro .eyebrow::before { content: ''; width: 24px; height: 2px; background: #b6a0ed; }
.library-intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: end; margin-top: 23px; }
.library-intro h1 { font-family: Manrope, sans-serif; font-size: clamp(2.5rem, 4.6vw, 4.6rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.12; margin: 0; }
.library-intro h1 span { color: #c6b5ff; display: block; }
.library-intro p { color: #d1ccde; font-size: 1.05rem; line-height: 1.8; max-width: 390px; margin: 0 0 4px; }
.library-content { padding-block: 43px 72px; }
.library-label { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; }
.library-label h2 { font: 600 .85rem 'DM Sans', sans-serif; letter-spacing: .02em; white-space: nowrap; }
.library-label::after { content: ''; height: 1px; background: #ded8e8; flex: 1; }
.library-label span { font-size: .8rem; color: #71667e; }
.article-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.library-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #e3dfea; border-radius: 13px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.library-card:hover { transform: translateY(-5px); border-color: #baa8d3; box-shadow: 0 14px 32px #2118300c; }
.library-card:focus-visible { outline: 3px solid #8054b1; outline-offset: 5px; }
.library-card-art { aspect-ratio: 17 / 9; overflow: hidden; border-bottom: 1px solid #201e3108; }
.library-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.library-card:hover img { transform: scale(1.025); }
.library-card-body { padding: 25px 26px 23px; display: flex; flex-direction: column; flex: 1; }
.library-category { font-size: .67rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: #73548d; margin-bottom: 13px; }
.library-card h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.32; font-weight: 600; letter-spacing: -.035em; margin: 0 0 15px; color: #262035; text-wrap: pretty; }
.library-card p { font-size: .94rem; line-height: 1.7; color: #696271; margin: 0 0 26px; }
.library-card-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #eee9f3; padding-top: 17px; margin-top: auto; color: #593d78; font-size: .85rem; font-weight: 600; }
.library-card-arrow { display: grid; place-items: center; background: #f2edf8; width: 30px; height: 30px; border-radius: 50%; font-size: 1.05rem; transition: background .2s ease, color .2s ease; }
.library-card:hover .library-card-arrow { background: #65448b; color: #fff; }
.library-invitation { margin-top: 48px; padding: 30px 34px; background: #eae3f5; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.library-invitation h2 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); font-weight: 500; }
.library-invitation p { margin: 8px 0 0; color: #62536f; font-size: .95rem; }
.library-invitation a { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; background: #2b233b; color: #fff; padding: 13px 19px; border-radius: 6px; font-size: .9rem; }
.library-invitation a:hover { background: #513669; }
.insights-library footer { color: #686073; background: #fff; border-top: 1px solid #e9e3ef; }
@media (max-width: 1100px) {
  .article-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .library-intro-grid { gap: 40px; }
  .library-card h3 { font-size: 1.5rem; }
}
@media (min-width: 701px) and (max-width: 950px) {
  .library-intro { padding-block: 44px; }
  .library-intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .library-intro p { max-width: 550px; }
}
@media (max-width: 700px) {
  .library-wrap { width: 88%; }
  .library-intro { padding: 38px 0 37px; }
  .library-intro-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .library-intro h1 { font-size: clamp(2.3rem, 7.5vw, 3.1rem); }
  .library-intro p { font-size: .98rem; max-width: 490px; }
  .library-content { padding-block: 28px 42px; }
  .article-library-grid { grid-template-columns: 1fr; gap: 24px; }
  .library-card-body { padding: 23px 24px; }
  .library-card h3 { font-size: 1.4rem; }
  .library-card p { margin-bottom: 23px; }
  .library-invitation { margin-top: 32px; padding: 25px; flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .library-card, .library-card-art img, .library-card-arrow { transition: none; }
  .library-card:hover, .library-card:hover img { transform: none; }
}
