/*

    ____   ___   _      ____      _      ____  _____
   / ___| / _ \ | |    |  _ \    / \    / ___|| ____|
  | |  _ | | | || |    | | | |  / _ \  | |  _ |  _|
  | |_| || |_| || |___ | |_| | / ___ \ | |_| || |___
   \____| \___/ |_____||____/ /_/   \_\ \____||_____|
                            /\
                            \/
  Goldage Jewellery Limited
  Hong Kong fine jewellery, made for trade

  Developer: Prinseyy

*/

/* GoldAge — phone layout (screens up to 760px wide), on every page.
   Loaded last, so it only adjusts what the other stylesheets already set for small screens.
   - Header: menu and 繁中 on the left, logo in the middle, search and RFQ basket (with its count) on the right.
   - Menu: a full-screen list. Product, Manufacturing, Contact and About fold open one at a time, and each
     product category folds open to its sub-categories (mobile.js adds those category buttons).
   - Homepage catalogue: each category is a carousel showing two designs at a time, with "More +" beside the title.
   - Text: body copy and small labels are a step larger than on desktop, so they read comfortably on a phone.
   Tablet and desktop layouts are unchanged. */

/* Parts added by mobile.js only appear on phones. */
.ga-m-cat,
.ga-m-cat-all,
.ga-m-progress,
.ga-m-hero-dots,
.ga-m-hero-caption { display: none; }

@media (max-width: 760px) {
  :root {
    --ga-m-ink: #1f2b29;
    --ga-m-text: #3a4441;
    --ga-m-muted: #6b7370;
    --ga-m-line: #e8ebea;
    --ga-m-teal: #087c7b;
    --ga-m-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
    --ga-m-icon-basket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5h19l-2 10a1.6 1.6 0 0 1-1.6 1.3H6.1a1.6 1.6 0 0 1-1.6-1.3z'/%3E%3Cpath d='M7.5 9.5 11 3.5M16.5 9.5 13 3.5M8.5 13.5v4M12 13.5v4M15.5 13.5v4'/%3E%3C/svg%3E");
  }

  /* ============================================================ header */
  /* Solid white instead of the blurred glass: the blur would also trap the full-screen menu inside the header. */
  html body.layout-v18.jp-inspired-home .header-shell {
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html body.layout-v18.jp-inspired-home .header-shell .site-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
    display: grid !important;
    grid-template-columns: 44px 62px minmax(0, 1fr) 34px 72px !important;
    grid-template-rows: 64px !important;
    align-items: center !important;
    gap: 0 !important;
  }
  /* The header buttons sit directly in the header grid: menu and language left, search and basket right. */
  html body.layout-v18.jp-inspired-home .header-shell .header-actions { display: contents !important; }
  html body.layout-v18.jp-inspired-home .header-shell .jp-header-utility,
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .buyer-button { display: none !important; }

  html body.layout-v18.jp-inspired-home .header-shell .site-header .brand {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: min(150px, 100%) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.layout-v18.jp-inspired-home .header-shell .site-header .brand img { display: block; width: 100% !important; height: auto !important; }

  html body.layout-v18.jp-inspired-home .header-shell .header-actions :is(.menu-button, .language-toggle, .header-search-button, .quote-button) {
    position: relative;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--ga-m-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
  }

  /* menu: three thin lines, turning into a cross while the menu is open */
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .menu-button {
    grid-column: 1 !important;
    justify-self: start !important;
    width: 44px !important;
    font-size: 0 !important;
  }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .menu-button::before,
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .menu-button::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: top .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .menu-button::before { top: 14px; box-shadow: 0 7px 0 currentColor; }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .menu-button::after { top: 28px; }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .menu-button[aria-expanded="true"]::before { top: 21px; box-shadow: none; transform: rotate(45deg); }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .menu-button[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

  /* 繁中 / EN */
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .language-toggle {
    grid-column: 2 !important;
    justify-self: start !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    border: 1px solid #d3dcda !important;
    border-radius: 15px !important;
    color: var(--ga-m-teal) !important;
    font: 800 14px/1 Manrope, system-ui, sans-serif !important;
    letter-spacing: .04em !important;
  }

  /* search: magnifier icon */
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .header-search-button {
    grid-column: 4 !important;
    justify-self: end !important;
    width: 34px !important;
    font-size: 0 !important;
  }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .header-search-button > span { display: none !important; }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .header-search-button::before {
    content: "";
    width: 25px;
    height: 25px;
    background: currentColor;
    -webkit-mask: var(--ga-m-icon-search) center / contain no-repeat;
    mask: var(--ga-m-icon-search) center / contain no-repeat;
  }

  /* RFQ basket: basket icon with the unit count, e.g. (0) */
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button {
    grid-column: 5 !important;
    justify-self: end !important;
    gap: 0 !important;
    font-size: 0 !important;
  }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button::before {
    content: "";
    flex: none;
    margin-right: 4px;
    width: 26px;
    height: 26px;
    background: currentColor;
    -webkit-mask: var(--ga-m-icon-basket) center / contain no-repeat;
    mask: var(--ga-m-icon-basket) center / contain no-repeat;
  }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button :is(#quote-count, [data-shell-rfq-count]) {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--ga-m-ink) !important;
    background: none !important;
    font: 600 16px/26px Manrope, system-ui, sans-serif !important;
  }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button :is(#quote-count, [data-shell-rfq-count])::before { content: "("; }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button :is(#quote-count, [data-shell-rfq-count])::after { content: ")"; }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button small { display: none !important; }
  /* four-digit unit counts (mobile.js marks them) step down a size to stay inside the header */
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button.ga-m-long-count :is(#quote-count, [data-shell-rfq-count]) { font-size: 13px !important; }
  html body.layout-v18.jp-inspired-home .header-shell .header-actions .quote-button.ga-m-long-count::before { margin-right: 1px; }

  /* ============================================================ menu: full-screen list */
  html body.layout-v18.jp-inspired-home #primary-navigation {
    position: fixed !important;
    inset: var(--ga-header-h, 64px) 0 0 0 !important;
    z-index: 90 !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 32px !important;
    /* always laid out on phones, so it can fade and slide in and out; hidden (and out of the tab order) while closed */
    display: flex !important;
    visibility: hidden !important;
    opacity: 0;
    translate: 0 -12px;
    pointer-events: none;
    transition: opacity .26s ease, translate .32s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .32s;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border: 0 !important;
    border-top: 1px solid var(--ga-m-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation.open {
    visibility: visible !important;
    opacity: 1;
    translate: 0 0;
    pointer-events: auto;
    transition-delay: 0s;
  }

  /* top-level rows: PRODUCT, MANUFACTURING, SERVICES, CONTACT, Q&A, ABOUT GOLDAGE */
  html body.layout-v18.jp-inspired-home #primary-navigation > a,
  html body.layout-v18.jp-inspired-home #primary-navigation > button:not([hidden]),
  html body.layout-v18.jp-inspired-home #primary-navigation > details > summary {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ga-m-line) !important;
    border-radius: 0 !important;
    color: var(--ga-m-ink) !important;
    background: #fff !important;
    font: 700 18px/1.25 Manrope, system-ui, sans-serif !important;
    letter-spacing: .06em !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    list-style: none !important;
    cursor: pointer;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation > a::before,
  html body.layout-v18.jp-inspired-home #primary-navigation > a::after,
  html body.layout-v18.jp-inspired-home #primary-navigation > details > summary::after { display: none !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation > details > summary::-webkit-details-marker { display: none; }

  /* fold-open arrows (top level and product categories) */
  html body.layout-v18.jp-inspired-home #primary-navigation > details > summary::before,
  html body.layout-v18.jp-inspired-home #primary-navigation .ga-m-cat::after {
    content: "" !important;
    order: 2;
    flex: none;
    width: 10px !important;
    height: 10px !important;
    margin: -5px 4px 0 14px !important;
    border: 0 !important;
    border-right: 1.6px solid #4d5653 !important;
    border-bottom: 1.6px solid #4d5653 !important;
    opacity: 1 !important;
    transform: rotate(45deg) !important;
    transition: transform .2s ease, margin .2s ease !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation > details[open] > summary::before,
  html body.layout-v18.jp-inspired-home #primary-navigation .ga-m-cat[aria-expanded="true"]::after {
    margin-top: 5px !important;
    transform: rotate(-135deg) !important;
  }

  /* the panels that fold open */
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega,
  html body.layout-v18.jp-inspired-home #primary-navigation .nav-submenu > .jp-dropdown {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    animation: none !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation :is(.jp-mega, .jp-dropdown)::before { display: none !important; }

  /* product categories: a row each, folding open to their sub-categories */
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-categories { display: block !important; margin: 0 !important; padding: 0 !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-col {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--ga-m-line) !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-tile { display: none !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation .ga-m-cat {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    color: var(--ga-m-text);
    background: #fff;
    font: 500 19px/1.25 Manrope, system-ui, sans-serif;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    cursor: pointer;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation .ga-m-cat[aria-expanded="true"] { color: var(--ga-m-teal); }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-links {
    display: none !important;
    margin: 0 !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    list-style: none !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-col.is-open > .jp-mega-links { display: block !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-links li { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }

  /* sub-links in every panel: plain grey text */
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-links a,
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-dropdown a {
    display: block !important;
    margin: 0 !important;
    padding: 10px 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--ga-m-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    font: 400 18px/1.35 Manrope, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transform: none !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-links a::before { display: none !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation :is(.jp-mega-links, .jp-dropdown) a:is(:hover, :focus-visible) { padding-left: 30px !important; color: var(--ga-m-teal) !important; background: transparent !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-dropdown { padding: 6px 0 12px !important; border-bottom: 1px solid var(--ga-m-line) !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-dropdown :is(.jp-dd-icon, .jp-dd-text small) { display: none !important; }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-dropdown .jp-dd-text,
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-dropdown .jp-dd-text strong {
    display: inline !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  /* View all designs / Search / Bulk-order matrix, under the categories */
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-footer {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-footer a {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ga-m-line) !important;
    color: var(--ga-m-teal) !important;
    font: 600 17px/1.3 Manrope, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-footer kbd { display: none !important; }

  /* Buyer login at the bottom (the language switch is in the header) */
  html body.layout-v18.jp-inspired-home #primary-navigation .mobile-nav-actions {
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 24px 22px 0 !important;
    border: 0 !important;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation .mobile-nav-actions .mobile-language { display: none !important; }

  /* The page behind an open menu stays still, and the floating buttons step aside.
     (body uses clip, not hidden: a hidden body would become its own scroll box and unstick the header.) */
  html.ga-nav-open { overflow: hidden !important; }
  html.ga-nav-open body { overflow: clip !important; }
  html.ga-nav-open :is(.ga-dock, .ux-back-to-top) { visibility: hidden !important; }

  /* ============================================================ homepage hero, phone version
     Desktop shows two photos either side of the dark panel. On a phone the two photos share one edge-to-edge
     frame as a slideshow (swipe or tap the dots; mobile.js changes photo every few seconds), each with a short
     caption, and the panel's wording sits underneath on the same dark green, so the jewellery isn't covered.
     The logo mark is left out here because the header shows the logo just above. */
  html body.layout-v18.jp-inspired-home .jp-hero {
    --ga-m-hero-photo: min(86vw, 460px);
    position: relative !important;
    display: grid !important;
    grid-template-columns: 100% !important;
    grid-template-rows: var(--ga-m-hero-photo) auto !important;
    place-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #0d2e2d !important;
    box-shadow: none !important;
  }
  /* both photos in the same frame; the one showing fades in over the other */
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 1.1s ease;
  }
  html body.layout-v18.jp-inspired-home .jp-hero:not(.ga-m-slideshow) .jp-reference-panel-left,
  html body.layout-v18.jp-inspired-home .jp-hero.ga-m-slideshow .jp-reference-panel.is-active { opacity: 1; z-index: 1; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-panel img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    transform: none !important;
  }
  /* the photo darkens gently at the bottom into the panel colour, which also keeps the caption readable */
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-panel::after {
    background: linear-gradient(180deg, rgba(13, 46, 45, 0) 52%, rgba(13, 46, 45, .55) 82%, #0d2e2d 100%) !important;
  }
  html body.layout-v18.jp-inspired-home .jp-hero .ga-m-hero-caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 120px);
    color: #fff;
    font: 700 13.5px/1.3 Manrope, system-ui, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(5, 25, 24, .45);
  }
  html body.layout-v18.jp-inspired-home .jp-hero .ga-m-hero-caption::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    background: #e2b537;
    transform: rotate(45deg);
  }
  /* dots to change photo (added by mobile.js) */
  html body.layout-v18.jp-inspired-home .jp-hero .ga-m-hero-dots {
    position: absolute;
    top: calc(var(--ga-m-hero-photo) - 50px);
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 2px;
  }
  html body.layout-v18.jp-inspired-home .jp-hero .ga-m-hero-dots button {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  html body.layout-v18.jp-inspired-home .jp-hero .ga-m-hero-dots button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .55);
    translate: -50% -50%;
    transition: width .3s ease, background-color .3s ease;
  }
  html body.layout-v18.jp-inspired-home .jp-hero .ga-m-hero-dots button[aria-current="true"]::before { width: 22px; background: #e2b537; }

  /* the wording, on the same dark green under the photos */
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center {
    position: relative !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    z-index: 2 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 22px 22px 34px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: radial-gradient(circle at 50% 0%, rgba(226, 181, 55, .12), transparent 55%), #0d2e2d !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-hero-mark { display: none !important; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center h1 { margin: 12px 0 12px !important; font-size: 40px !important; line-height: 1.04 !important; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center > p:not(.eyebrow) { margin: 0 auto !important; max-width: 34ch; line-height: 1.55 !important; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 24px 0 0 !important;
  }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-hero-actions .primary-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 20px !important;
  }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-hero-actions .jp-text-link { align-self: center !important; }

  /* Categories are in the menu, so the category strip and sticky category tabs are not repeated here. */
  html body.layout-v18.jp-inspired-home :is(.jp-category-nav, .ga-category-tabs) { display: none !important; }

  /* catalogue: just the search box above the categories */
  html body.layout-v18.jp-inspired-home .ga-catalogue { width: 100% !important; margin-inline: 0 !important; padding: 0 !important; }
  html body.layout-v18.jp-inspired-home .ga-catalogue-heading {
    width: 100% !important;
    margin: 0 !important;
    padding: 22px 16px 18px !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue-heading > div:first-child { display: none !important; }
  html body.layout-v18.jp-inspired-home .ga-catalogue-tools { max-width: none !important; margin: 0 !important; }

  /* one section per category: title and "More +" on top, then a carousel showing two designs at a time
     (swipe, or use the ‹ › arrows at the sides) */
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-row {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 34px 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-row[hidden] { display: none !important; }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-hook {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-hook :is(.ga-category-hook-media, .jp-kicker, .ga-category-count, .ga-category-hook-content > p) { display: none !important; }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-hook-content {
    position: static !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: none !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-hook-content h3 {
    margin: 0 !important;
    color: var(--ga-m-ink) !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-hook-content > .ga-ghost-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: none !important;
    min-height: 44px !important;
    margin: 0 0 0 auto !important;
    padding: 0 2px 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--ga-m-muted) !important;
    background: none !important;
    box-shadow: none !important;
    font: 500 18px/1 Manrope, system-ui, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-category-hook-content > .ga-ghost-button span { color: inherit !important; font-size: 22px !important; font-weight: 400 !important; }

  /* the carousel: two designs in view, snapping one design at a time when swiped */
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-track {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - 12px) / 2) !important;
    gap: 12px !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-track::-webkit-scrollbar { display: none; }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-track > .ga-sku-card { scroll-snap-align: start; }

  /* ‹ › arrows in the side margins, level with the photos (script.js keeps --ga-carousel-y up to date) */
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-carousel-controls {
    position: absolute !important;
    inset: var(--ga-carousel-y, 60%) 0 auto !important;
    z-index: 8;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    pointer-events: none !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-carousel-controls.is-static { display: none !important; }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-carousel-button {
    width: 32px !important;
    height: 60px !important;
    font-size: 40px !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-carousel-previous { left: 1px !important; }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-carousel-next { right: 1px !important; }

  /* design cards: photo and reference */
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card {
    position: relative;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e1e5e3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .jp-product-image {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    padding: 10px 10px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .jp-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .jp-product-image > b,
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card :is(.ga-spec-list, .jp-card-actions) { display: none !important; }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .ga-sku-meta {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px 8px 16px !important;
    border: 0 !important;
    background: #fff !important;
    text-align: center !important;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .ga-sku-code {
    display: block !important;
    overflow: hidden;
    color: var(--ga-m-text) !important;
    font: 500 17px/1.3 Manrope, system-ui, sans-serif !important;
    letter-spacing: .02em !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .ga-heart { top: 6px !important; right: 6px !important; width: 32px !important; height: 32px !important; }

  /* ============================================================ text: a step larger on phones
     The older stylesheets size text for desktop, which leaves labels at 10–11px and copy at 12–14px on a phone.
     "#ga-phone-text" never exists: the :not() pair only lifts these rules above those page-specific ones. */

  /* everyday paragraphs and lists (16px elsewhere) and the lead paragraphs (17px) */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) main :is(p, li, address, blockquote) { font-size: 17px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(.legal-lead, .about-story-copy > p) { font-size: 18px !important; }

  /* section labels and small capitals (were 10–11px) */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(
    .eyebrow, .jp-kicker, .ga-operation-index, .jp-facts small, .footer-column > strong, .footer-location,
    .matrix-control-label, .matrix-table thead th, .bulk-summary dt, .bulk-summary dt span,
    .manufacturing-reference-grid figcaption, .calc-headline > div > span, .custom-form-heading > span,
    .service-grid > article > span, #procedure li > span, .jp-service-grid > article > span,
    .exhibition-grid > article > span, .registration-heading > span, .verified-specs dt, .config-heading span, .product-estimate > span,
    .job-spec dt, .job-spec-total > dt, .ga-palette-group-title
  ) { font-size: 13.5px !important; }

  /* buttons and button-style links (were 10–12px) */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(
    .primary-button, .secondary-button, .jp-text-link, .secondary-hero-button, .check-button,
    .footer-primary, .footer-secondary, .exhibition-grid > article > a, .svc-jump > a, .currency-toggle > button,
    .product-detail-actions > button, .product-detail-actions > a, .product-mobile-action-bar > button,
    .ga-palette-chips > button, .ga-palette-esc, #primary-navigation .mobile-login
  ) { font-size: 14.5px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) .primary-button > span { font-size: inherit !important; }

  /* body copy (was 12–14px) */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) .jp-reference-center > p:not(.eyebrow) { font-size: 16px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(
    .about-values > article > p, .ga-operation-card > p, .ga-operation-card > address, .service-grid > article > p,
    #procedure li p, .registration-heading > p, .footer-brand > p, .registration-control > span,
    .product-summary .product-description, .browser-storage-notice > span, .browser-storage-notice > strong
  ) { font-size: 16.5px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(.registration-intro > p, .footer-cta > div > p:not(.eyebrow)) { font-size: 17px !important; }

  /* notes and fine print (was 11–13px) */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(
    .calc-note, .bulk-note, .form-note, .catalogue-disclosure, .configuration-notice, .product-assurance,
    .product-design-notes > p > span, .fx-status, .pricing-bar-copy > span
  ) { font-size: 15px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(
    .config-select-grid > label > small, .config-field > label > small, .registration-group > legend > small,
    .job-spec dd small, .job-spec-total dd small, .product-estimate > small, .config-summary > span,
    .matrix-design-meta > small, .matrix-design-meta > strong, .product-thumbs span, .original-photo-link,
    .ga-tool-button > span, .ga-palette-text > small, .ga-palette-price, .ga-palette-count,
    #access-status, .ga-catalogue-status strong, #product-count
  ) { font-size: 14px !important; }

  /* lists, form labels and tables */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(
    .ga-capability-list > li > strong, .ga-capability-list > li > span, .formula-list > li > span, .formula-list > li > b,
    .estimator-grid > label, .custom-request-form > label, .registration-row > label, .registration-row > .row-label,
    .config-select-grid > label, .config-field > label, .config-notes, .quote-contact-grid > label, #quote-form > label,
    .calc-breakdown th, .calc-breakdown td, .text-link
  ) { font-size: 16px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) .matrix-table :is(tbody, tfoot) :is(td, th) { font-size: 15px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(.matrix-table, .calc-breakdown) :is(td, th) small { font-size: 13.5px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(
    .product-title-row span.sku, .verified-specs dd, .product-spec-block > summary, .product-disclosure > summary,
    .product-recommendations button strong
  ) { font-size: 15.5px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) .ga-palette-text > strong { font-size: 17px !important; }

  /* footer */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) .site-footer .footer-column > :is(a, button) { font-size: 16px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) .site-footer .footer-bottom nav a { font-size: 14px !important; }
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) .site-footer .footer-bottom :is(.copyright, .copyright span) { font-size: 13.5px !important; }

  /* form fields at 17px (16px or more also stops iPhones zooming in when a field is tapped) */
  html body.layout-v18:not(#ga-phone-text):not(#ga-phone-text) :is(main, dialog) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { font-size: 17px !important; }

  /* Trade services: the "Build an order across variants" panel fits the screen instead of running off the right edge. */
  html body.layout-v18.jp-inspired-home .jp-feature { grid-template-columns: minmax(0, 1fr) !important; }

  /* Search and the RFQ basket are in the header, so the floating bar only appears for a shortlist. */
  html body.layout-v18.jp-inspired-home .ga-dock :is(.ga-dock-search, .ga-dock-rfq) { display: none !important; }
  html body.layout-v18.jp-inspired-home .ga-dock:not(.has-shortlist) { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
}

/* ============================================================ phone animations
   Started by mobile.js where they need a script: the menu sections and product categories fold open and closed,
   sections rise into view as the page scrolls, each carousel has a progress bar and (once per visit) a small
   swipe hint, the header gains a shadow once the page scrolls, and the basket pops when its count changes.
   All of it is left out when the phone asks for reduced motion. */
@media (max-width: 760px) {
  /* carousel progress bar under each category (mobile.js adds it and keeps --size / --pos up to date) */
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-m-progress:not([hidden]) {
    position: relative;
    display: block;
    width: 34%;
    height: 3px;
    margin: 20px auto 0;
    overflow: hidden;
    border-radius: 3px;
    background: #e2e7e5;
  }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-m-progress > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--size, 1) * 100%);
    border-radius: inherit;
    background: var(--ga-m-teal);
    translate: calc(var(--pos, 0) * (1 / var(--size, 1) - 1) * 100%) 0;
  }

  /* header shadow once the page has scrolled */
  html body.layout-v18.jp-inspired-home .header-shell { transition: box-shadow .25s ease; }
  html.ga-m-scrolled body.layout-v18.jp-inspired-home .header-shell { box-shadow: 0 8px 22px rgba(20, 44, 41, .10) !important; }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @keyframes ga-m-rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
  @keyframes ga-m-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes ga-m-sheet { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

  /* hero: the photo showing zooms in slowly, and the wording rises in line by line when the page opens */
  @keyframes ga-m-hero-zoom { from { scale: 1; } to { scale: 1.08; } }
  html body.layout-v18.jp-inspired-home .jp-hero.ga-m-slideshow .jp-reference-panel.is-active img { animation: ga-m-hero-zoom 7.5s ease-out both; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center > * { animation: ga-m-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center > :nth-child(2) { animation-delay: .08s; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center > :nth-child(3) { animation-delay: .16s; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center > :nth-child(4) { animation-delay: .24s; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-center > :nth-child(n + 5) { animation-delay: .32s; }

  /* menu rows rise in one after another as the menu opens */
  html body.layout-v18.jp-inspired-home #primary-navigation.open > :is(a, details, button:not([hidden]), .mobile-nav-actions) {
    animation: ga-m-rise .42s cubic-bezier(.2, .7, .2, 1) both;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation.open > :nth-child(2) { animation-delay: .04s; }
  html body.layout-v18.jp-inspired-home #primary-navigation.open > :nth-child(3) { animation-delay: .08s; }
  html body.layout-v18.jp-inspired-home #primary-navigation.open > :nth-child(4) { animation-delay: .12s; }
  html body.layout-v18.jp-inspired-home #primary-navigation.open > :nth-child(5) { animation-delay: .16s; }
  html body.layout-v18.jp-inspired-home #primary-navigation.open > :nth-child(6) { animation-delay: .2s; }
  html body.layout-v18.jp-inspired-home #primary-navigation.open > :nth-child(n + 7) { animation-delay: .24s; }

  /* links inside a section, and a category's styles, rise in as it folds open */
  html body.layout-v18.jp-inspired-home #primary-navigation details[open] > .jp-dropdown > a,
  html body.layout-v18.jp-inspired-home #primary-navigation details[open] .jp-mega-col,
  html body.layout-v18.jp-inspired-home #primary-navigation details[open] .jp-mega-footer > a,
  html body.layout-v18.jp-inspired-home #primary-navigation .jp-mega-col.is-open > .jp-mega-links > li {
    animation: ga-m-rise .34s cubic-bezier(.2, .7, .2, 1) both;
  }
  html body.layout-v18.jp-inspired-home #primary-navigation :is(.jp-dropdown > a, .jp-mega-col, .jp-mega-footer > a, .jp-mega-links > li):nth-child(2) { animation-delay: .03s; }
  html body.layout-v18.jp-inspired-home #primary-navigation :is(.jp-dropdown > a, .jp-mega-col, .jp-mega-footer > a, .jp-mega-links > li):nth-child(3) { animation-delay: .06s; }
  html body.layout-v18.jp-inspired-home #primary-navigation :is(.jp-dropdown > a, .jp-mega-col, .jp-mega-footer > a, .jp-mega-links > li):nth-child(4) { animation-delay: .09s; }
  html body.layout-v18.jp-inspired-home #primary-navigation :is(.jp-dropdown > a, .jp-mega-col, .jp-mega-footer > a, .jp-mega-links > li):nth-child(5) { animation-delay: .12s; }
  html body.layout-v18.jp-inspired-home #primary-navigation :is(.jp-dropdown > a, .jp-mega-col, .jp-mega-footer > a, .jp-mega-links > li):nth-child(n + 6) { animation-delay: .15s; }

  /* sections rise into view as the page scrolls (mobile.js marks the ones below the first screen) */
  .ga-m-reveal {
    opacity: 0;
    translate: 0 26px;
    transition: opacity .6s ease, translate .75s cubic-bezier(.2, .7, .2, 1);
  }
  .ga-m-reveal.is-in { opacity: 1; translate: 0 0; }
  .ga-category-row.ga-m-reveal .ga-sku-card { transition: opacity .55s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
  .ga-category-row.ga-m-reveal:not(.is-in) .ga-sku-card { opacity: 0; translate: 22px 0; }
  .ga-category-row.ga-m-reveal .ga-sku-card:nth-child(2) { transition-delay: .1s; }
  .ga-category-row.ga-m-reveal .ga-sku-card:nth-child(3) { transition-delay: .2s; }

  /* product details, RFQ basket and other pop-ups slide up; their backdrop fades */
  /* backwards, not both: a translate left on the dialog after the slide would trap its fixed action bar inside the scrolling dialog */
  html body.layout-v18 dialog.modal[open] { animation: ga-m-sheet .36s cubic-bezier(.2, .7, .2, 1) backwards; }
  html body.layout-v18 dialog.modal[open]::backdrop { animation: ga-m-fade .3s ease both; }

  /* a light press on buttons and design photos */
  html body.layout-v18.jp-inspired-home :is(
    .header-actions > button, .header-actions > a, .primary-button, .secondary-button, .footer-primary, .footer-secondary,
    #primary-navigation .mobile-login, .ga-ghost-button, .jp-text-link
  ) { transition: scale .14s ease; }
  html body.layout-v18.jp-inspired-home :is(
    .header-actions > button, .header-actions > a, .primary-button, .secondary-button, .footer-primary, .footer-secondary,
    #primary-navigation .mobile-login, .ga-ghost-button, .jp-text-link
  ):active { scale: .96; }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .jp-product-image img { transition: scale .35s cubic-bezier(.2, .7, .2, 1); }
  html body.layout-v18.jp-inspired-home .ga-catalogue .ga-sku-card .jp-product-open:active .jp-product-image img { scale: 1.05; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  html body.layout-v18.jp-inspired-home #primary-navigation { translate: none; transition: none; }
  html body.layout-v18.jp-inspired-home .jp-hero .jp-reference-panel { transition: none; }
}
