/*
 * ShuiYiYuan case + patent library master v1
 *
 * Loaded after styles.css and site-layout-v1.css.
 * Removing this file restores the previous library-page layout.
 *
 * Contract:
 * - section backgrounds may remain full width;
 * - all meaningful content shares one 1792px centered shell;
 * - section headings use the same quiet hierarchy as the rest of the site;
 * - product and document images are never cropped;
 * - desktop, tablet and mobile use the shared 1181 / 768 breakpoints.
 */

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  ) {
  --library-master-max: 1792px;
  --library-master-gutter: 72px;
  --library-master-edge: max(
    var(--library-master-gutter),
    calc((100% - var(--library-master-max)) / 2)
  );
  --library-master-section-y: clamp(76px, 5vw, 96px);
  --library-master-gap: clamp(28px, 2.2vw, 40px);
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  main,
html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  main
  > section {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .page-hero-panel,
html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  :is(.case-detail, .library-card, .document-card) {
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(20, 55, 90, 0.07) !important;
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .page-hero
  .hero-actions {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 28px 0 0 !important;
  gap: 12px !important;
  transform: none !important;
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .page-hero
  .hero-actions
  .button {
  margin: 0 !important;
  transform: none !important;
}

/*
 * Section headings: remove the historical oversized vertical rail and
 * underline. Eyebrow, title and supporting copy form one compact group.
 */
html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .library-section
  > .section-head {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 0 36px !important;
  padding: 0 !important;
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .library-section
  > .section-head::before,
html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .library-section
  > .section-head
  h2::after {
  display: none !important;
  content: none !important;
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .library-section
  > .section-head
  .eyebrow {
  margin: 0 0 10px !important;
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .library-section
  > .section-head
  h2 {
  width: auto !important;
  max-width: 1080px !important;
  margin: 0 !important;
  font-size: clamp(40px, 3vw, 52px) !important;
  line-height: 1.1 !important;
  text-wrap: balance !important;
}

html >
  body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
    .case-library-page,
    .patent-library-page
  )
  .library-section
  > .section-head
  p:not(.eyebrow) {
  max-width: 860px !important;
  margin: 18px 0 0 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

@media (min-width: 1181px) {
  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px) !important;
    gap: clamp(48px, 4vw, 72px) !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
      72px
      var(--library-master-edge)
      76px !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 920px !important;
    margin: 0 !important;
    justify-self: start !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    h1 {
    max-width: 920px !important;
    margin: 0 0 20px !important;
    font-size: clamp(52px, 3.5vw, 66px) !important;
    line-height: 1.06 !important;
    text-wrap: balance !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    p {
    max-width: 820px !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 400px !important;
    margin: 0 !important;
    padding: 32px !important;
    justify-self: end !important;
    border-top: 3px solid var(--blue) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero-panel
    strong {
    font-size: clamp(56px, 4.5vw, 76px) !important;
    line-height: .95 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
      var(--library-master-section-y)
      var(--library-master-edge) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section
    > :is(
      .section-head,
      .case-detail,
      .case-filter-bar,
      .library-grid,
      .document-grid
    ) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Featured case */
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail {
    display: grid !important;
    grid-template-columns: minmax(0, 1.28fr) minmax(380px, .72fr) !important;
    grid-template-rows: auto !important;
    gap: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    figure,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    img {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    padding: clamp(34px, 3vw, 52px) !important;
    border-left: 1px solid var(--line) !important;
  }

  /* Public case gallery */
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: var(--library-master-gap) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card
    img {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1672 / 941 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card
    > div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 24px 28px !important;
    align-content: start !important;
  }

  /* Patent library */
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: var(--library-master-gap) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card
    img {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: clamp(340px, 23vw, 430px) !important;
    min-height: 0 !important;
    max-height: 430px !important;
    padding: 18px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card
    div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 190px !important;
    padding: 24px 24px 28px !important;
    align-content: start !important;
  }
}

/*
 * Keep the featured case balanced on common laptop and small-desktop widths.
 * The source image remains fully visible; the wider text column reduces
 * artificial vertical space without switching to object-fit: cover.
 */
@media (min-width: 1281px) and (max-width: 1600px) {
  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
  }

  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    padding: 36px !important;
  }

  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    h3 {
    font-size: clamp(34px, 2.8vw, 42px) !important;
    line-height: 1.12 !important;
  }

  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    p {
    font-size: 15px !important;
    line-height: 1.58 !important;
  }
}

@media (min-width: 1181px) and (max-width: 1280px) {
  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
  }

  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    figure,
  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    img,
  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    img {
    aspect-ratio: 1672 / 941 !important;
    object-fit: contain !important;
  }

  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    border-top: 1px solid var(--line) !important;
    border-left: 0 !important;
  }
}

@media (min-width: 1600px) {
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1181px) {
  html.device-desktop >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card
    img {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    ) {
    --library-master-gutter: 32px;
    --library-master-edge: var(--library-master-gutter);
    --library-master-section-y: 64px;
    --library-master-gap: 20px;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 30px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
      60px
      var(--library-master-edge)
      56px !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    > div:first-child,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    h1 {
    max-width: 850px !important;
    margin: 0 0 18px !important;
    font-size: clamp(46px, 6vw, 58px) !important;
    line-height: 1.08 !important;
    text-wrap: balance !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero-panel {
    padding: 28px 30px !important;
    border-top: 3px solid var(--blue) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
      var(--library-master-section-y)
      var(--library-master-edge) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section
    > :is(
      .section-head,
      .case-detail,
      .case-filter-bar,
      .library-grid,
      .document-grid
    ) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    figure,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    img,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    img {
    display: block !important;
    aspect-ratio: 1672 / 941 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    padding: 34px 32px 38px !important;
    border-top: 1px solid var(--line) !important;
    border-left: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: var(--library-master-gap) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card
    img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1672 / 941 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card
    > div,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card
    > div {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card
    img {
    display: block !important;
    width: 100% !important;
    height: 380px !important;
    min-height: 0 !important;
    max-height: 380px !important;
    padding: 18px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }
}

@media (max-width: 767px) {
  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    ) {
    --library-master-gutter: 18px;
    --library-master-edge: var(--library-master-gutter);
    --library-master-section-y: 48px;
    --library-master-gap: 18px;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 24px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
      46px
      var(--library-master-edge)
      42px !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    > div:first-child,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero-panel {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    h1 {
    max-width: none !important;
    margin: 0 0 16px !important;
    font-size: clamp(38px, 11vw, 46px) !important;
    line-height: 1.08 !important;
    text-wrap: balance !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero
    p {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .page-hero-panel {
    padding: 24px !important;
    border-top: 3px solid var(--blue) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
      var(--library-master-section-y)
      var(--library-master-edge) !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section
    > :is(
      .section-head,
      .case-detail,
      .case-filter-bar,
      .library-grid,
      .document-grid
    ) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section
    > .section-head {
    margin-bottom: 26px !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.library-page:is(
      .case-library-page,
      .patent-library-page
    )
    .library-section
    > .section-head
    h2 {
    max-width: none !important;
    font-size: clamp(32px, 9.5vw, 38px) !important;
    line-height: 1.12 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: var(--library-master-gap) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail {
    gap: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    figure,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    img,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    img,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card
    img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1672 / 941 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .case-detail
    > div {
    padding: 28px 22px 32px !important;
    border-top: 1px solid var(--line) !important;
    border-left: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.case-library-page
    .project-library-grid
    .library-card
    > div,
  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card
    > div {
    height: auto !important;
    min-height: 0 !important;
    padding: 22px 20px 26px !important;
  }

  html >
    body.global-tech-page.global-tech-page.global-tech-page.patent-library-page
    .document-card
    img {
    display: block !important;
    width: 100% !important;
    height: 340px !important;
    min-height: 0 !important;
    max-height: 340px !important;
    padding: 16px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }
}
