/*
 * 渊古文化测试站 · single-screen final cascade
 *
 * Loaded after the shared brand layer.  This file is deliberately small and
 * route-agnostic: it only fixes viewport fitting and phone overflow after the
 * richer visual system has been applied.
 */

body.brand-site.single-screen-page main,
body.brand-site.single-screen-page main > * {
  box-sizing: border-box;
  min-width: 0;
}

/* Hash links to the browser download CTA should preserve the complete
 * single-screen composition.  The anchor is a fixed, invisible marker rather
 * than a second scroll position. */
body.brand-site.single-screen-page .screen-anchor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

body.brand-site.single-screen-page .brand-page-heading,
body.brand-site.single-screen-page .brand-product-directory,
body.brand-site.single-screen-page .brand-download-directory,
body.brand-site.single-screen-page .brand-release-directory,
body.brand-site.single-screen-page .brand-tutorial-directory,
body.brand-site.single-screen-page .contact-grid,
body.brand-site.single-screen-page .help-directory,
body.brand-site.single-screen-page .search-results,
body.brand-site.single-screen-page .feedback-layout {
  min-width: 0;
  overflow: hidden;
}

/* About is a concise brand statement.  Service/legal details stay reachable
 * through the header and their dedicated pages instead of extending the first
 * viewport below the fold on a short laptop screen. */
@media (min-width: 821px) and (max-height: 820px) {
  body.brand-site.single-screen-page .about-service-grid { display: none; }
}

body.brand-site.single-screen-page .about-principle-grid article {
  min-width: 0;
  overflow: hidden;
}

body.brand-site.single-screen-page .about-principle-grid p {
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.brand-site.single-screen-page .search-columns {
  min-width: 0;
  max-height: calc(100% - 150px);
  overflow: hidden;
}

body.brand-site.single-screen-page .search-columns > div,
body.brand-site.single-screen-page .feedback-layout > * {
  min-width: 0;
}

/* The pricing route has its own JIKE visual language, but it still obeys the
 * one-screen contract. */
body.brand-site.single-screen-page .jv2-pricing-page {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.brand-site.single-screen-page .jv2-pricing-page .jv2-inner-page-hero {
  padding-top: 24px;
  padding-bottom: 18px;
}

body.brand-site.single-screen-page .jv2-pricing-page .jv2-inner-page-hero h1 {
  margin-top: 10px;
  font-size: clamp(34px, 4.2vw, 58px);
}

body.brand-site.single-screen-page .jv2-pricing-page .jv2-inner-page-hero p {
  max-width: 700px;
  font-size: 12px;
  line-height: 1.55;
}

body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-body {
  padding-top: 16px;
  padding-bottom: 16px;
}

body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-page-head {
  margin-bottom: 12px;
}

body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-page-head h2 { font-size: 22px; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-page-head p { font-size: 11px; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-price-grid { gap: 9px; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-plan { min-height: 0; padding: 16px; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-plan-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-trust { margin-top: 14px; gap: 10px; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-trust > div { padding: 10px; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-trust p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-page-actions { margin-top: 14px; }

@media (max-width: 820px) {
  body.brand-site.single-screen-page main { width: 100%; }

  body.brand-site.single-screen-page .shell,
  body.brand-site.single-screen-page .brand-page-heading,
  body.brand-site.home-screen-page .brand-hero {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    min-width: 0;
  }

  body.brand-site.single-screen-page .brand-page-heading,
  body.brand-site.single-screen-page .brand-page-heading > *,
  body.brand-site.home-screen-page .brand-hero,
  body.brand-site.home-screen-page .brand-hero > *,
  body.brand-site.home-screen-page .brand-hero-copy,
  body.brand-site.home-screen-page .browser-spotlight {
    min-width: 0;
    max-width: 100%;
  }

  body.brand-site.single-screen-page .brand-page-heading h1,
  body.brand-site.single-screen-page .brand-page-heading p,
  body.brand-site.home-screen-page .brand-hero h1,
  body.brand-site.home-screen-page .brand-hero-lead {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  body.brand-site.home-screen-page .brand-hero h1 em { white-space: normal; }
  body.brand-site.home-screen-page .brand-hero-lead { max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  body.brand-site.home-screen-page .browser-spotlight { width: 100% !important; overflow: hidden; }
  body.brand-site.home-screen-page .spotlight-device-stage,
  body.brand-site.home-screen-page .spotlight-window,
  body.brand-site.home-screen-page .spotlight-copy { min-width: 0; max-width: 100%; }
  body.brand-site.home-screen-page .spotlight-window { width: min(86%, 360px); right: 0; }
  body.brand-site.home-screen-page .spotlight-copy h2,
  body.brand-site.home-screen-page .spotlight-copy p { overflow-wrap: anywhere; word-break: break-word; }

  body.brand-site.single-screen-page .about-service-grid { display: none; }
  body.brand-site.single-screen-page .about-principles { height: calc(100% - 112px); padding-bottom: 0; }
  body.brand-site.single-screen-page .about-principle-grid { height: 100%; grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body.brand-site.single-screen-page .about-principle-grid article { min-height: 0; height: auto; padding: 10px; }
  body.brand-site.single-screen-page .about-principle-grid h2 { margin: 8px 0 3px; font-size: 16px; }
  body.brand-site.single-screen-page .about-principle-grid p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; line-height: 1.4; }

  body.brand-site.home-screen-page .spotlight-device-stage { width: 100%; overflow: hidden; }
  body.brand-site.home-screen-page .spotlight-phone { left: 2px; }
  body.brand-site.home-screen-page .spotlight-copy { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  body.brand-site.home-screen-page .spotlight-link { max-width: 100%; }

  body.brand-site.single-screen-page .jv2-pricing-page .jv2-inner-page-hero { padding-top: 16px; padding-bottom: 12px; }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-inner-page-hero h1 { font-size: clamp(30px, 9vw, 46px); }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-inner-page-hero p { display: none; }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-page-head { display: block; }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-page-head p { display: none; }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-plan { padding: 9px; }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-plan-note { font-size: 10px; }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.brand-site.single-screen-page .jv2-pricing-page .jv2-pricing-trust p { font-size: 9px; }
}

@media (max-width: 470px) {
  body.brand-site.single-screen-page .brand-page-heading h1 { font-size: clamp(26px, 8vw, 34px); }
  body.brand-site.single-screen-page .brand-page-heading p { display: none; }
  body.brand-site.home-screen-page .brand-hero h1 { font-size: clamp(34px, 11vw, 46px); }
  body.brand-site.home-screen-page .browser-spotlight { height: 276px; }
  body.brand-site.single-screen-page .about-principle-grid h2 { font-size: 15px; }
  body.brand-site.single-screen-page .about-principle-grid p { font-size: 9px; }
}

/* v22 phone fit pass -------------------------------------------------------
 * The compact dashboards must fit the actual phone viewport, not preserve
 * the desktop card minimums.  The previous 3-column rules could leave a
 * 150px-wide third tile hanging outside a 390px viewport.  These last rules
 * intentionally use two equal columns and reset every flex/grid minimum. */
html,
body.brand-site.single-screen-page {
  max-width: 100%;
  overflow-x: hidden;
}

html:has(body.brand-site.single-screen-page) {
  height: 100%;
  overflow: hidden !important;
}

body.brand-site.single-screen-page {
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
}

body.brand-site.single-screen-page main {
  flex: 0 0 calc(100svh - var(--yg-single-top)) !important;
  height: calc(100svh - var(--yg-single-top)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.brand-site.single-screen-page .contact-note {
  display: none !important;
}

@media (min-width: 821px) {
  body.brand-site.single-screen-page {
    --yg-single-top: 112px;
  }

  body.brand-site.single-screen-page .brand-product-directory,
  body.brand-site.single-screen-page .brand-download-directory,
  body.brand-site.single-screen-page .brand-release-directory,
  body.brand-site.single-screen-page .brand-tutorial-directory {
    height: calc(100% - 153px) !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .help-directory {
    height: calc(100% - 190px) !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .page-heading p {
    display: none !important;
  }

  body.brand-site.single-screen-page .page-heading {
    padding-top: 22px !important;
    padding-bottom: 12px !important;
  }

  body.brand-site.single-screen-page .help-tabs {
    flex: 0 0 78px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .help-tabs a {
    min-height: 0 !important;
    padding: 9px !important;
    font-size: 12px !important;
    text-align: center;
  }

  body.brand-site.single-screen-page .help-product {
    flex: 1 1 auto;
    min-height: 0 !important;
    padding: 8px 0 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .help-product:not(:first-of-type) {
    display: none !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list {
    max-width: 820px;
    padding-bottom: 0 !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list details:not(:first-child) {
    display: none !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list details {
    padding: 10px 0 !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 820px) {
  html {
    height: 100%;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page {
    height: 100%;
    min-height: 0;
    --yg-single-top: 154px;
    overflow: hidden !important;
  }

  /* Login and registration remain in the mobile menu.  Keeping the duplicate
   * desktop action row out of the phone header returns a full, usable screen
   * to the catalogue and support dashboards. */
  body.brand-site.single-screen-page .site-header-actions {
    display: none !important;
  }

  body.brand-site.single-screen-page .brand-mobile-nav {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 49px;
    max-height: 60px;
  }

  body.brand-site.single-screen-page main {
    flex: 0 0 calc(100svh - var(--yg-single-top)) !important;
    height: calc(100svh - var(--yg-single-top)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page main,
  body.brand-site.single-screen-page main > *,
  body.brand-site.single-screen-page .shell,
  body.brand-site.single-screen-page .brand-page-heading,
  body.brand-site.single-screen-page .brand-product-directory,
  body.brand-site.single-screen-page .brand-download-directory,
  body.brand-site.single-screen-page .brand-release-directory,
  body.brand-site.single-screen-page .brand-tutorial-directory,
  body.brand-site.home-screen-page .brand-hero,
  body.brand-site.home-screen-page .brand-hero-copy,
  body.brand-site.home-screen-page .browser-spotlight {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.brand-site.single-screen-page .shell,
  body.brand-site.home-screen-page .brand-hero {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
  }

  body.brand-site.home-screen-page .brand-hero h1 {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.brand-site.home-screen-page .brand-hero h1 em {
    display: block !important;
    white-space: normal !important;
  }

  body.brand-site.home-screen-page .brand-hero-index {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.brand-site.home-screen-page .brand-hero-index span {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.brand-site.single-screen-page .brand-product-grid,
  body.brand-site.single-screen-page .brand-download-directory,
  body.brand-site.single-screen-page .brand-release-list,
  body.brand-site.single-screen-page .tutorial-directory-grid {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    gap: 6px !important;
    overflow: hidden;
  }

  body.brand-site.single-screen-page .brand-product-directory,
  body.brand-site.single-screen-page .brand-download-directory,
  body.brand-site.single-screen-page .brand-release-directory,
  body.brand-site.single-screen-page .brand-tutorial-directory {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    height: calc(100% - 112px) !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .brand-product-filters {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    max-height: 55px !important;
    gap: 3px !important;
  }

  body.brand-site.single-screen-page .brand-product-filters button {
    min-height: 22px !important;
    padding: 2px 2px !important;
    font-size: 7px !important;
    line-height: 1.1;
  }

  body.brand-site.single-screen-page .brand-product-grid {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
  }

  body.brand-site.single-screen-page .brand-product-card,
  body.brand-site.single-screen-page .brand-product-card-featured,
  body.brand-site.single-screen-page .brand-product-website-navigator,
  body.brand-site.single-screen-page .brand-download-card,
  body.brand-site.single-screen-page .brand-release-card,
  body.brand-site.single-screen-page .brand-tutorial-card {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 100% !important;
    box-sizing: border-box;
  }

  body.brand-site.single-screen-page .brand-product-card,
  body.brand-site.single-screen-page .brand-product-card-featured,
  body.brand-site.single-screen-page .brand-product-website-navigator {
    display: flex !important;
    flex-direction: column !important;
    grid-column: auto !important;
    grid-template-columns: none !important;
  }

  body.brand-site.single-screen-page .brand-product-card-art,
  body.brand-site.single-screen-page .brand-product-card-featured .brand-product-card-art,
  body.brand-site.single-screen-page .brand-product-website-navigator .brand-product-card-art {
    flex: 0 0 30px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
    min-height: 30px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.brand-site.single-screen-page .brand-product-card-body,
  body.brand-site.single-screen-page .download-card-content,
  body.brand-site.single-screen-page .brand-release-main,
  body.brand-site.single-screen-page .tutorial-card-copy {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.brand-site.single-screen-page .brand-product-card-body {
    padding: 4px 5px !important;
  }

  body.brand-site.single-screen-page .brand-product-card-body .product-meta {
    font-size: 6px !important;
    line-height: 1.1;
  }

  body.brand-site.single-screen-page .brand-product-card-body h2 {
    margin: 2px 0 !important;
    font-size: 9px !important;
    line-height: 1.05;
  }

  body.brand-site.single-screen-page .brand-product-card-body h2,
  body.brand-site.single-screen-page .brand-product-card-body p,
  body.brand-site.single-screen-page .download-card-content h2,
  body.brand-site.single-screen-page .brand-release-main h2,
  body.brand-site.single-screen-page .tutorial-card-copy h2 {
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.brand-site.single-screen-page .brand-product-card-footer {
    min-width: 0 !important;
    max-width: 100%;
    gap: 2px;
    padding-top: 1px !important;
    flex-wrap: wrap;
    overflow: hidden;
  }

  body.brand-site.single-screen-page .brand-product-card-footer .status-pill,
  body.brand-site.single-screen-page .brand-product-card-footer .button.small {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.brand-site.single-screen-page .brand-product-card-footer .status-pill {
    min-height: 14px !important;
    padding: 2px 3px !important;
    font-size: 6px !important;
  }

  body.brand-site.single-screen-page .brand-product-card-footer .button.small {
    min-height: 16px !important;
    padding: 2px 3px !important;
    font-size: 6px !important;
    border-radius: 5px;
  }

  body.brand-site.single-screen-page .release-variant-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 24px !important;
    padding: 4px !important;
  }

  body.brand-site.single-screen-page .release-variant-row > span {
    min-width: 0;
    max-width: 100%;
  }

  body.brand-site.single-screen-page .release-variant-row .status-pill {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.1;
    font-size: 6px !important;
  }

  body.brand-site.single-screen-page .brand-download-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.brand-site.single-screen-page .brand-download-card .download-card-rail {
    display: none !important;
  }

  body.brand-site.single-screen-page .brand-release-card,
  body.brand-site.single-screen-page .brand-tutorial-card {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
  }

  /* The free browser page has exactly two platform variants.  Keep Windows
   * and Android side by side on a phone so the download choice is visible in
   * the same screen instead of stacking the second card below the fold. */
  body.brand-site.single-screen-page .browser-variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  body.brand-site.single-screen-page .browser-variant-card {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden;
    padding: 8px !important;
  }

  body.brand-site.single-screen-page .browser-variant-card .browser-variant-top,
  body.brand-site.single-screen-page .browser-variant-card .release-line,
  body.brand-site.single-screen-page .browser-variant-card .release-facts,
  body.brand-site.single-screen-page .browser-variant-card .release-facts dd {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.brand-site.single-screen-page .browser-download-section .section-heading-row {
    margin-bottom: 6px !important;
  }

  body.brand-site.single-screen-page .browser-download-section .section-heading-row p {
    display: none !important;
  }

  body.brand-site.single-screen-page .browser-download-section .section-heading-row h2 {
    font-size: 18px !important;
    line-height: 1.2;
  }

  body.brand-site.single-screen-page .browser-variant-top {
    gap: 4px !important;
  }

  body.brand-site.single-screen-page .browser-variant-top span {
    font-size: 7px !important;
  }

  body.brand-site.single-screen-page .browser-variant-top strong {
    font-size: 18px !important;
    line-height: 1.05;
  }

  body.brand-site.single-screen-page .browser-variant-top small {
    font-size: 7px !important;
  }

  body.brand-site.single-screen-page .browser-variant-card > p {
    margin: 7px 0 !important;
    font-size: 9px !important;
    line-height: 1.35;
  }

  body.brand-site.single-screen-page .browser-variant-card .release-facts,
  body.brand-site.single-screen-page .browser-variant-card .release-line {
    font-size: 7px !important;
    line-height: 1.25;
  }

  body.brand-site.single-screen-page .browser-variant-card .release-hash {
    display: none !important;
  }

  body.brand-site.single-screen-page .browser-variant-card .button {
    width: 100%;
    min-height: 22px !important;
    padding: 3px 4px !important;
    font-size: 7px !important;
    white-space: normal;
  }

  body.brand-site.single-screen-page .browser-detail-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    overflow: hidden !important;
    height: 44% !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero + .browser-download-section {
    height: 56% !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .brand-detail-copy {
    flex: 0 0 auto;
    min-width: 0;
  }

  body.brand-site.single-screen-page .browser-detail-hero .brand-detail-copy .actions .button:nth-of-type(n + 3) {
    display: none !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .brand-detail-art {
    display: none !important;
  }

  /* Help is a search-and-route surface on a phone.  Keep the first answer
   * visible while the full FAQ remains available through the existing hash
   * sections and desktop layout. */
  body.brand-site.single-screen-page .page-heading p {
    display: none !important;
  }

  body.brand-site.single-screen-page .page-heading {
    padding-top: 16px !important;
    padding-bottom: 10px !important;
  }

  body.brand-site.single-screen-page .help-directory {
    height: calc(100% - 86px) !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .help-tabs {
    flex: 0 0 94px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .help-tabs a {
    min-height: 0 !important;
    padding: 8px !important;
    font-size: 10px !important;
    line-height: 1.2;
    text-align: center;
  }

  body.brand-site.single-screen-page .help-tabs a:nth-child(n + 5) {
    display: none !important;
  }

  body.brand-site.single-screen-page .help-product {
    flex: 1 1 auto;
    min-height: 0 !important;
    padding: 6px 0 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .help-product:not(:first-of-type) {
    display: none !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list {
    max-width: 100%;
    padding-bottom: 0 !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list details:not(:first-child) {
    display: none !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list details {
    padding: 8px 0 !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list summary {
    font-size: 13px !important;
  }

  body.brand-site.single-screen-page .help-product .faq-list p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.45;
  }
}

/* v38 short-desktop fit ---------------------------------------------------
 * The in-app preview and compact laptops can expose a 700–740px-tall
 * viewport.  Keep the same one-screen composition there by giving the
 * catalogue grid and the browser release cards the remaining flex height
 * instead of the roomy 390px desktop baseline.  Nothing is removed from the
 * DOM; only the already-condensed summaries are allowed to shrink. */
@media (min-width: 821px) and (max-height: 740px) {
  body.brand-site.single-screen-page .brand-page-heading {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
  }

  body.brand-site.single-screen-page .brand-page-heading h1 {
    font-size: clamp(32px, 3.8vw, 48px) !important;
    line-height: .94;
  }

  body.brand-site.single-screen-page .brand-page-heading p {
    font-size: 11px !important;
    line-height: 1.45;
  }

  body.brand-site.single-screen-page .brand-product-directory {
    height: calc(100% - 86px) !important;
  }

  body.brand-site.single-screen-page .brand-product-directory .brand-directory-toolbar {
    padding: 7px 10px !important;
  }

  body.brand-site.single-screen-page .brand-product-directory .brand-product-filters {
    margin: 6px 0 7px !important;
    padding: 4px !important;
    gap: 4px !important;
  }

  body.brand-site.single-screen-page .brand-product-grid {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    grid-auto-rows: minmax(0, 1fr) !important;
  }

  body.brand-site.single-screen-page .brand-product-card,
  body.brand-site.single-screen-page .brand-product-card-featured,
  body.brand-site.single-screen-page .brand-product-website-navigator {
    height: 100% !important;
  }

  body.brand-site.single-screen-page .brand-product-card-body {
    padding: 8px 10px 7px !important;
  }

  body.brand-site.single-screen-page .brand-product-card-body h2 {
    margin: 3px 0 !important;
    font-size: 14px !important;
  }

  body.brand-site.single-screen-page .brand-product-card-body p {
    -webkit-line-clamp: 1 !important;
    font-size: 9px !important;
  }

  body.brand-site.single-screen-page .brand-product-card-footer {
    margin-top: 6px !important;
    padding-top: 3px !important;
  }

  body.brand-site.single-screen-page .brand-product-card-footer .status-pill,
  body.brand-site.single-screen-page .brand-product-card-footer .button.small {
    min-height: 22px !important;
    padding: 4px 6px !important;
    font-size: 8px !important;
  }

  /* The browser detail page shares the same viewport between its hero and
   * the two platform cards.  Clamp the copy and let the cards consume the
   * rest so the Windows and Android choices are fully visible. */
  body.brand-site.single-screen-page .browser-detail-hero {
    height: 38% !important;
    min-height: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    gap: 28px !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .brand-detail-copy {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .brand-detail-copy h1 {
    margin: 8px 0 !important;
    font-size: clamp(42px, 5vw, 62px) !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .brand-detail-copy > p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .product-facts {
    margin-top: 8px !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .actions {
    margin-top: 8px !important;
    gap: 5px !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .actions .button {
    min-height: 30px !important;
    padding: 6px 9px !important;
    font-size: 9px !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .coming-note {
    display: block;
    margin-top: 6px;
    font-size: 9px;
    line-height: 1.25;
  }

  body.brand-site.single-screen-page .browser-detail-hero .brand-detail-art {
    min-height: 180px !important;
    height: 180px !important;
    align-self: start !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .detail-browser-window {
    height: 120px !important;
    top: 12px !important;
    padding: 12px !important;
    transform: rotate(-4deg) scale(.72) !important;
    transform-origin: top right;
  }

  body.brand-site.single-screen-page .browser-detail-hero .detail-browser-window strong {
    margin-top: 10px !important;
    font-size: 17px !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .detail-browser-phone {
    width: 76px !important;
    height: 132px !important;
    padding: 16px 9px !important;
    bottom: 14px !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero .detail-browser-phone strong {
    font-size: 16px !important;
  }

  body.brand-site.single-screen-page .browser-detail-hero + .browser-download-section {
    height: 62% !important;
    min-height: 0 !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  body.brand-site.single-screen-page .browser-download-section .section-heading-row {
    margin-bottom: 7px !important;
  }

  body.brand-site.single-screen-page .browser-download-section .section-heading-row h2 {
    font-size: 20px !important;
  }

  body.brand-site.single-screen-page .browser-variant-grid {
    height: calc(100% - 34px) !important;
    min-height: 0 !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body.brand-site.single-screen-page .browser-variant-card {
    min-height: 0 !important;
    height: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  body.brand-site.single-screen-page .browser-variant-card .release-line {
    margin-top: 12px !important;
    font-size: 9px !important;
  }

  body.brand-site.single-screen-page .browser-variant-card .release-facts {
    gap: 4px !important;
    margin: 8px 0 !important;
    font-size: 8px !important;
    line-height: 1.25;
  }

  body.brand-site.single-screen-page .browser-variant-card .release-hash,
  body.brand-site.single-screen-page .browser-variant-card .release-facts > div:nth-child(3),
  body.brand-site.single-screen-page .browser-variant-card .release-channel {
    display: none !important;
  }

  body.brand-site.single-screen-page .browser-variant-card .release-hash dd {
    max-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.brand-site.single-screen-page .browser-variant-card .button {
    min-height: 25px !important;
    margin-top: 5px !important;
    padding: 4px 6px !important;
    font-size: 8px !important;
  }

  /* Tutorial detail: the chapter cards remain visible below a shorter
   * intro instead of losing the second row below the clipped viewport. */
  body.brand-site.single-screen-page .tutorial-detail-layout {
    height: calc(100% - 82px) !important;
  }

  body.brand-site.single-screen-page .tutorial-detail-intro {
    height: 166px !important;
    min-height: 0 !important;
    padding: 11px !important;
    gap: 14px !important;
  }

  body.brand-site.single-screen-page .tutorial-detail-art {
    min-height: 0 !important;
    height: 142px !important;
  }

  body.brand-site.single-screen-page .tutorial-detail-intro h2 {
    margin: 5px 0 !important;
    font-size: 22px !important;
  }

  body.brand-site.single-screen-page .tutorial-detail-intro p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  body.brand-site.single-screen-page .tutorial-detail-intro .actions {
    margin-top: 7px !important;
    gap: 5px !important;
  }

  body.brand-site.single-screen-page .tutorial-detail-intro .actions .button {
    min-height: 28px !important;
    padding: 5px 8px !important;
    font-size: 9px !important;
  }

  body.brand-site.single-screen-page .tutorial-guide-list {
    height: calc(100% - 178px) !important;
    min-height: 0 !important;
    margin-top: 10px !important;
    gap: 8px !important;
  }

  body.brand-site.single-screen-page .tutorial-guide-card {
    min-height: 0 !important;
    height: 100% !important;
    padding: 10px !important;
  }

  body.brand-site.single-screen-page .tutorial-guide-card h2 {
    margin: 5px 0 !important;
    font-size: 17px !important;
  }
}
