/*
 * ShuiYiYuan applications library master v1
 *
 * Loaded after styles.css and site-layout-v1.css.
 * Removing this file restores the previous applications-page layout.
 *
 * Contract:
 * - section backgrounds remain full width;
 * - meaningful content shares the 1792px site shell;
 * - section headings use the same quiet hierarchy as the other library pages;
 * - application images remain fully visible;
 * - desktop, tablet and mobile use the shared 1181 / 768 breakpoints.
 */

html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page {
  --applications-master-max: 1792px;
  --applications-master-gutter: 72px;
  --applications-master-edge: max(
    var(--applications-master-gutter),
    calc((100% - var(--applications-master-max)) / 2)
  );
  --applications-master-section-y: clamp(72px, 5vw, 94px);
  --applications-master-gap: clamp(20px, 1.7vw, 28px);
}

html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page main,
html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
  :is(.page-hero-panel, .application-detail-grid article, .fit-grid article) {
  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.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
  .page-hero
  .hero-actions
  .button {
  margin: 0 !important;
  transform: none !important;
}

html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
  .library-section
  > .section-head::before,
html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
  .library-section
  > .section-head
  .eyebrow {
  margin: 0 0 10px !important;
}

html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
  :is(.application-detail-grid article, .fit-grid article, .material-chips span)
  :is(h3, p, a),
html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
  :is(.application-detail-grid article, .fit-grid article, .material-chips span) {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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;
    padding: 72px var(--applications-master-edge) 76px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
    .library-section {
    padding:
      var(--applications-master-section-y)
      var(--applications-master-edge) !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .library-section
    > :is(.section-head, .application-detail-grid, .fit-grid, .material-chips) {
    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.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: var(--applications-master-gap) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article {
    display: grid !important;
    grid-column: span 2 !important;
    grid-template-columns: minmax(0, 1fr) !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;
    overflow: hidden !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article:nth-child(4) {
    grid-column: 2 / span 2 !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article:nth-child(5) {
    grid-column: 4 / span 2 !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    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: 16 / 9 !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.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article
    > div {
    display: grid !important;
    align-content: start !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 220px !important;
    padding: 26px 26px 30px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .fit-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: var(--applications-master-gap) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .fit-grid
    article {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 168px !important;
    padding: 26px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .material-chips {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1px !important;
    overflow: hidden !important;
    background: var(--line) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .material-chips
    span {
    display: flex !important;
    align-items: center !important;
    min-height: 74px !important;
    padding: 18px 20px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
}

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

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 30px !important;
    padding: 60px var(--applications-master-edge) 56px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .page-hero
    > div:first-child,
  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
    .library-section {
    padding:
      var(--applications-master-section-y)
      var(--applications-master-edge) !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .library-section
    > :is(.section-head, .application-detail-grid, .fit-grid, .material-chips) {
    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.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid,
  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .fit-grid,
  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .material-chips {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: var(--applications-master-gap) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !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;
    overflow: hidden !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article:nth-child(5) {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(260px, 42%) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }

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

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article:nth-child(5)
    img {
    height: 100% !important;
    aspect-ratio: auto !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article
    > div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 210px !important;
    padding: 24px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .fit-grid
    article {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 150px !important;
    padding: 24px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .material-chips {
    gap: 1px !important;
    overflow: hidden !important;
    background: var(--line) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .material-chips
    span {
    display: flex !important;
    align-items: center !important;
    min-height: 68px !important;
    padding: 16px 18px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 767px) {
  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page {
    --applications-master-gutter: 18px;
    --applications-master-edge: var(--applications-master-gutter);
    --applications-master-section-y: 50px;
    --applications-master-gap: 18px;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .page-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 24px !important;
    padding: 46px var(--applications-master-edge) 42px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .page-hero
    > div:first-child,
  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
    .page-hero
    h1 {
    max-width: none !important;
    margin: 0 0 16px !important;
    font-size: clamp(40px, 12vw, 50px) !important;
    line-height: 1.08 !important;
    text-wrap: balance !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-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.global-tech-page.global-tech-page.application-library-page
    .library-section {
    padding:
      var(--applications-master-section-y)
      var(--applications-master-edge) !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .library-section
    > :is(.section-head, .application-detail-grid, .fit-grid, .material-chips) {
    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.global-tech-page.global-tech-page.application-library-page
    .library-section
    > .section-head {
    margin-bottom: 28px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .library-section
    > .section-head
    h2 {
    font-size: clamp(34px, 10vw, 42px) !important;
    line-height: 1.08 !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    :is(.application-detail-grid, .fit-grid, .material-chips) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: var(--applications-master-gap) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    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: 16 / 9 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #f4f9ff !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .application-detail-grid
    article
    > div {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 22px 28px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .fit-grid
    article {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 22px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .material-chips {
    gap: 1px !important;
    overflow: hidden !important;
    background: var(--line) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
  }

  html > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.application-library-page
    .material-chips
    span {
    display: flex !important;
    align-items: center !important;
    min-height: 62px !important;
    padding: 15px 17px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
}
