/* The gallery component can still emit older layout markup on detail pages. */
.dv-products-page .animate-on-scroll {
    opacity: 1;
    transform: none;
}

.dv-product-card h3 {
    margin: 12px 0;
    color: #19191b;
    font: 600 22px/1.4 Rubik, Arial, sans-serif;
}

/* Product detail and catalog typography */
.dv-products-page #main-content {
    --product-ink: #25282d;
    --product-copy: #41464d;
    --product-accent: #914019;
    --product-card: #f7f5ef;
}

.dv-products-page #main-content .products-layout .item-title h1 {
    font-size: clamp(2rem, 1.45rem + 2.6vw, 3.75rem);
    line-height: 1.16;
    text-wrap: balance;
}

.dv-products-page #main-content .products-layout .content-wrapper {
    color: var(--product-ink);
}

.dv-products-page #main-content .products-layout .content-wrapper p {
    color: var(--product-copy);
    font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
    line-height: 1.75;
    max-inline-size: 70ch;
}

.dv-products-page #main-content .products-layout .content-wrapper h2 {
    color: var(--product-ink);
    font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem);
    line-height: 1.35;
    text-wrap: balance;
}

.dv-products-page #main-content .products-layout .content-wrapper li {
    color: var(--product-ink);
    background-color: var(--product-card);
}

/* The gallery assigns a color directly to the nested label. */
.dv-products-page #main-content .products-layout .content-wrapper li > span {
    color: var(--product-ink) !important;
    font-size: clamp(1rem, .97rem + .2vw, 1.125rem);
    line-height: 1.55;
    font-weight: 500;
}

.dv-products-page #main-content .products-layout .content-wrapper li > svg {
    color: var(--product-accent);
    flex-shrink: 0;
}

.dv-products-page #main-content .dv-article-neighbours a,
.dv-products-page #main-content .dv-product-card-more {
    color: var(--product-accent);
    font-size: 1rem;
    font-weight: 600;
}

/* Legacy gallery links use important declarations for both colors and size. */
.dv-products-page #main-content .products-layout .back-buttons a {
    color: var(--product-accent) !important;
    font-size: 1rem !important;
    font-weight: 600;
}

.dv-products-page #main-content .products-layout .back-buttons a > span {
    color: inherit !important;
    font-size: inherit;
}

.dv-products-page #main-content .products-layout .back-buttons a:is(:hover, :focus-visible) {
    color: #fff !important;
    background: var(--product-accent) !important;
}

.dv-products-page #main-content .dv-article-neighbours a {
    text-decoration: underline;
    text-underline-offset: .18em;
    line-height: 1.6;
}

.dv-products-page #main-content .dv-product-index .dv-product-card-copy h3 {
    color: var(--product-ink);
    font-size: clamp(1.25rem, 1.13rem + .45vw, 1.625rem);
    line-height: 1.35;
    text-wrap: balance;
}

.dv-products-page #main-content .dv-product-index .dv-product-card-copy p,
.dv-products-page #main-content .dv-products-section-head p {
    color: var(--product-copy);
    font-size: 1rem;
    line-height: 1.65;
}

.dv-products-page #main-content .dv-product-card-no {
    font-size: .8125rem;
}

.dv-products-page #main-content a:focus-visible {
    outline: 3px solid var(--product-accent);
    outline-offset: 3px;
}

.dv-products-page #main-content .dv-product-guide {
    box-sizing: border-box;
    max-inline-size: 68rem;
    margin: 1.5rem auto 3rem;
    padding: clamp(1.15rem, 3.5vw, 2.5rem);
    background: #fff;
    border-inline-start: .25rem solid var(--product-accent);
    color: var(--product-copy);
}
.dv-products-page #main-content .dv-product-guide h2 {
    margin-block: 0 .65rem;
    color: var(--product-ink);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    line-height: 1.35;
}
.dv-products-page #main-content .dv-product-guide p {
    max-inline-size: 72ch;
    margin-block: .5rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--product-copy);
}
.dv-products-page #main-content .dv-product-guide a {
    color: var(--product-accent);
    text-decoration: underline;
    text-underline-offset: .18em;
}

/* Product section spacing: keep heading hierarchy distinct on desktop and mobile. */
.dv-products-page #main-content .products-layout .content-wrapper :is(h2,h3,h4) {
  margin-block-start: clamp(1.75rem, 3vw, 2.75rem) !important;
  margin-block-end: .85rem !important;
}
.dv-products-page #main-content .products-layout .content-wrapper :is(h2,h3,h4):first-child {
  margin-block-start: 0 !important;
}
.dv-products-page #main-content .products-layout .content-wrapper :is(h2,h3,h4) + :is(p,ul,ol) {
  margin-block-start: .5rem;
}

/* ShiftX detail: accessible contrast, compact editorial rhythm and responsive feature cards. */
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .case-text {background:#f8f7f4!important;color:#17232e!important;padding-block:clamp(2.75rem,6vw,5.5rem)!important;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .case-text-inner {max-width:1120px!important;width:100%!important;margin-inline:auto!important;padding-inline:clamp(1rem,4vw,2rem)!important;box-sizing:border-box;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper {color:#17232e!important;text-align:right;direction:rtl;max-width:100%;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper p {color:#334155!important;max-inline-size:74ch;font-size:clamp(1.06rem,1rem + .35vw,1.2rem)!important;line-height:1.8!important;margin-block:0 1rem!important;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper > div > p:first-child {font-size:clamp(1.18rem,1.04rem + .6vw,1.5rem)!important;line-height:1.7!important;margin-bottom:2rem!important;color:#26384a!important;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper h2 {color:#152c40!important;font-size:clamp(1.5rem,1.2rem + 1.1vw,2.1rem)!important;line-height:1.35!important;margin-block:2.6rem 1.1rem!important;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper :is(ul,ol) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem!important;padding:0!important;margin:0 0 2.2rem!important;list-style:none!important;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper ol {grid-template-columns:repeat(3,minmax(0,1fr));counter-reset:shift-step;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper :is(ul,ol) li {position:relative;min-width:0;display:flex!important;align-items:flex-start;gap:.75rem;padding:1.15rem 1.25rem!important;margin:0!important;border:1px solid #dce3e7;border-radius:12px;background:#fff!important;box-shadow:0 5px 17px #17232e0a;color:#243649!important;font-weight:500;line-height:1.65!important;font-size:1.05rem!important;box-sizing:border-box;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper ul li::before {content:'✓';flex:0 0 1.75rem;display:grid;place-items:center;height:1.75rem;border-radius:50%;color:#087e8b;background:#e2f4f3;font-weight:700;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper ol li {counter-increment:shift-step;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper ol li::before {content:counter(shift-step);flex:0 0 1.75rem;display:grid;place-items:center;height:1.75rem;border-radius:50%;color:#fff;background:#087e8b;font-weight:700;}
.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper a[href] {color:#087480!important;font-weight:700;text-decoration:underline;text-underline-offset:.19em;}
.dv-products-page #main-content:has(.products-layout img[alt="מערכת ניהול משמרות"]) .dv-product-guide {max-inline-size:1120px;margin:2.5rem auto 4rem;border:1px solid #e0e3e7;border-radius:18px;border-inline-start:4px solid #087e8b;box-sizing:border-box;}
.dv-products-page #main-content:has(.products-layout img[alt="מערכת ניהול משמרות"]) #product-workflow {max-inline-size:none!important;padding:clamp(.4rem,1.3vw,1rem);background:#f5f7f8;border-radius:16px;box-sizing:border-box;overflow:visible!important;}
.dv-products-page #main-content:has(.products-layout img[alt="מערכת ניהול משמרות"]) #product-workflow img {object-fit:contain!important;max-width:100%!important;height:auto!important;display:block;}
@media(max-width:760px){.dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper :is(ul,ol){grid-template-columns:1fr!important;} .dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .content-wrapper h2{margin-block:1.8rem .8rem!important;} .dv-products-page #main-content .products-layout:has(.case-hero img[alt="מערכת ניהול משמרות"]) .case-text-inner{padding-inline:1rem!important;}}
