:root{--ls-green:#075e52;--ls-green-dark:#043f38;--ls-ink:#172421;--ls-muted:#65716e;--ls-line:#dbe5e2}
.ls-page{direction:rtl;text-align:right;padding:0 0 70px;background:#f7f9f8;color:var(--ls-ink);line-height:2}
.ls-content-container{width:min(1120px,calc(100% - 32px));margin-inline:auto}
.ls-content-breadcrumb{display:flex;align-items:center;gap:9px;overflow-x:auto;white-space:nowrap;margin:24px 0;padding:14px 18px;border:2px dotted var(--ls-green);border-radius:11px;background:#fff;color:#75817e;font-size:13px}
.ls-content-breadcrumb a{color:var(--ls-green);text-decoration:none}
.ls-page-card,.ls-single-card{padding:clamp(22px,4vw,48px);border:2px dotted var(--ls-green);border-radius:15px;background:#fff;box-shadow:0 12px 35px rgba(10,64,55,.06)}
.ls-page-card__header{margin-bottom:28px;text-align:center}.ls-page-card__header span,.ls-contact-hero>div>span{color:var(--ls-green);font-size:13px;font-weight:800}
.ls-page-card__header h1,.ls-contact-hero h1{margin:6px 0;color:var(--ls-ink);font-size:clamp(31px,4vw,48px);line-height:1.45}
.ls-page-card__image{margin:0 0 32px}.ls-page-card__image img{display:block;width:100%;max-height:520px;object-fit:contain}
.ls-rich-content{direction:rtl;text-align:right;color:#4f5c59;font-size:16px;line-height:2.15}
.ls-rich-content h2,.ls-rich-content h3,.ls-rich-content h4{color:var(--ls-ink);line-height:1.7}.ls-rich-content p{text-align:justify}
.ls-rich-content ul,.ls-rich-content ol{padding-right:1.5rem;padding-left:0}.ls-rich-content li{margin:.35rem 0}
.ls-rich-content img{display:block;max-width:100%;height:auto;margin:24px auto}
.ls-rich-content figure{max-width:100%;margin:26px auto;text-align:center}.ls-rich-content figcaption{text-align:center;color:var(--ls-muted);font-size:13px}
.ls-rich-content .wp-block-table,.ls-rich-content>table,.ls-single-content .wp-block-table,.ls-single-content>table{max-width:100%;overflow-x:auto;margin:26px 0}
.ls-rich-content table,.ls-single-content table{width:100%;direction:rtl;border-collapse:collapse;background:#fff}
.ls-rich-content th,.ls-rich-content td,.ls-single-content th,.ls-single-content td{padding:12px 14px;border:1px solid var(--ls-line);text-align:right!important;vertical-align:top}
.ls-rich-content th,.ls-single-content th{background:#eaf4f1;color:var(--ls-green-dark);font-weight:800}
.ls-rich-content tr:nth-child(even),.ls-single-content tr:nth-child(even){background:#f7faf9}
.ls-page-comments{margin-top:28px;padding:26px;border:1px solid var(--ls-line);border-radius:13px;background:#fff}
.ls-contact-hero{display:grid;grid-template-columns:1.25fr .75fr;gap:35px;align-items:center;margin:24px 0;padding:38px;border-radius:16px;color:#fff;background:linear-gradient(135deg,var(--ls-green),var(--ls-green-dark))}
.ls-contact-hero h1{color:#fff}.ls-contact-hero p{color:#e1eeeb}.ls-contact-methods{display:grid;gap:12px}
.ls-contact-methods a{display:flex;gap:13px;align-items:center;padding:14px;border:1px solid rgba(255,255,255,.2);border-radius:10px;color:#fff;text-decoration:none;background:rgba(255,255,255,.07)}
.ls-contact-methods i{font-size:23px}.ls-contact-methods span{display:grid;font-size:12px}.ls-contact-methods strong{direction:ltr;text-align:right;font-size:15px}
.ls-contact-grid{display:grid;grid-template-columns:1fr 420px;gap:24px;align-items:start}.ls-contact-form-card{padding:28px;border:1px solid var(--ls-line);border-radius:14px;background:#fff}
.ls-contact-form-card h2{margin:0}.ls-contact-form-card>p{color:var(--ls-muted)}.ls-contact-form-card form{display:grid;gap:12px}
.ls-contact-form-card label{display:grid;gap:5px;font-size:13px;font-weight:700}.ls-contact-form-card input,.ls-contact-form-card select,.ls-contact-form-card textarea{width:100%;margin:0;padding:11px 12px;border:1px solid var(--ls-line);border-radius:7px;background:#fff;font:inherit}
.ls-contact-form-card button{padding:13px 18px;border:0;border-radius:7px;color:#fff;background:var(--ls-green);font:inherit;font-weight:800;cursor:pointer}
.ls-contact-notice{margin:22px 0;padding:14px 18px;border-radius:9px}.ls-contact-notice--success{border:1px solid #8ccdbf;color:#075e52;background:#ebf8f5}.ls-contact-notice--error{border:1px solid #e6a5a2;color:#982f2b;background:#fff1f0}
@media(max-width:850px){.ls-contact-hero,.ls-contact-grid{grid-template-columns:1fr}.ls-contact-form-card{grid-row:1}}
@media(max-width:600px){.ls-page-card,.ls-single-card,.ls-contact-hero{padding:20px 16px}.ls-rich-content{font-size:15px}.ls-rich-content .wp-block-table,.ls-rich-content>table,.ls-single-content .wp-block-table,.ls-single-content>table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.ls-rich-content table,.ls-single-content table{min-width:620px}}

body.single .container{margin-top:25px;margin-bottom:45px;padding:clamp(18px,3vw,38px);border:2px dotted var(--ls-green);border-radius:15px;background:#fff;box-shadow:0 12px 35px rgba(10,64,55,.06)}
body.single #h1-index{font-size:clamp(30px,4vw,46px);line-height:1.55}
body.single .about-text{height:auto;overflow:visible;margin-top:22px}
body.single .textPage{direction:rtl;text-align:right;background:#fff}
body.single .textPage p{font-size:16px;line-height:2.15;text-align:justify}
body.single .textPage img{width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;object-fit:contain}
body.single .breadcrumb_lasticsazan{display:flex;align-items:center;gap:9px;overflow-x:auto;white-space:nowrap;padding:14px 18px;border:2px dotted var(--ls-green);background:#fff;font-size:13px}
body.single table{direction:rtl}
body.single table th,body.single table td{text-align:right!important}
@media(max-width:600px){body.single .container{width:calc(100% - 20px);padding:16px 12px}body.single .textPage table{display:table;min-width:620px}body.single .textPage{overflow-x:auto}}

/* v5: remove legacy LTR floats and keep media/tables predictable in RTL. */
.ls-page-card__header {
    display: grid;
    grid-template-columns: minmax(26px, 1fr) auto minmax(26px, 1fr);
    align-items: center;
    gap: clamp(12px, 3vw, 26px);
}
.ls-page-card__header::before,
.ls-page-card__header::after {
    content: "";
    grid-row: 2;
    height: 1px;
    background: #1d2927;
}
.ls-page-card__header > span { grid-column: 1 / -1; }
.ls-page-card__header > h1 {
    grid-column: 2;
    white-space: nowrap;
    color: var(--ls-green);
}
.ls-rich-content,
.ls-single-content,
body.single .textPage { direction: rtl; text-align: right; }
.ls-rich-content img,
.ls-single-content img,
body.single .textPage img,
body.single .index_pic {
    float: none !important;
    clear: both;
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 24px auto !important;
    object-fit: contain;
}
.ls-rich-content table,
.ls-single-content table,
body.single table {
    direction: rtl;
    table-layout: auto;
}
.ls-rich-content tr,
.ls-single-content tr,
body.single table tr { direction: rtl; }
.ls-rich-content th,
.ls-single-content th,
body.single table th {
    text-align: right !important;
}
body.single table th[scope="row"] {
    width: 32%;
    color: var(--ls-green-dark);
    background: #eaf4f1;
}
body.single > .container > .row:first-of-type {
    direction: rtl;
}
body.single > .container > .row:first-of-type > [class*="col-"] {
    float: right;
}

@media(max-width:600px) {
    .ls-page { padding-bottom: 40px; }
    .ls-content-container { width: calc(100% - 20px); }
    .ls-page-card__header {
        gap: 9px;
    }
    .ls-page-card__header > h1 {
        white-space: normal;
        font-size: 27px;
        line-height: 1.65;
    }
    .ls-page-card,
    .ls-single-card {
        padding: 18px 13px;
    }
    body.single > .container > .row:first-of-type > [class*="col-"] {
        float: none;
        width: 100%;
    }
}

/* v8: readable Single/Page colors regardless of legacy or editor colors. */
.ls-page-card,
.ls-single-card,
.ls-rich-content,
.ls-single-content,
body.single .textPage,
body.single .about-text {
    color: #33423f !important;
    background-color: #fff !important;
}
.ls-rich-content p,
.ls-rich-content li,
.ls-rich-content td,
.ls-single-content p,
.ls-single-content li,
.ls-single-content td,
body.single .textPage p,
body.single .textPage li,
body.single .textPage td {
    color: #33423f !important;
}
.ls-rich-content h1,
.ls-rich-content h2,
.ls-rich-content h3,
.ls-rich-content h4,
.ls-rich-content h5,
.ls-rich-content h6,
.ls-single-content h1,
.ls-single-content h2,
.ls-single-content h3,
.ls-single-content h4,
.ls-single-content h5,
.ls-single-content h6,
body.single .textPage h1,
body.single .textPage h2,
body.single .textPage h3,
body.single .textPage h4 {
    color: #075e52 !important;
}
.ls-rich-content a,
.ls-single-content a,
body.single .textPage a {
    color: #075e52 !important;
    text-decoration-color: rgba(7, 94, 82, .35);
}
.ls-rich-content a:hover,
.ls-single-content a:hover,
body.single .textPage a:hover {
    color: #c86622 !important;
}
.ls-rich-content ::selection,
.ls-single-content ::selection,
body.single .textPage ::selection {
    color: #fff;
    background: #075e52;
}

/* v11: clean related-products sidebar for Single templates. */
.ls-legacy-single { padding: 0 0 70px; color: var(--ls-ink); background: #f5f8f7; }
.ls-legacy-single > .container { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.ls-legacy-single__header { max-width: 820px; margin: 28px auto; text-align: center; }
.ls-legacy-single__header > span,.ls-sidebar-eyebrow { color: var(--ls-green); font-size: 12px; font-weight: 900; }
.ls-legacy-single__header h1 { margin: 7px 0; color: var(--ls-ink) !important; }
.ls-legacy-single__cover { overflow: hidden; margin: 0 0 30px; border-radius: 18px; background: #eaf1ef; }
.ls-legacy-single__cover img { width: 100% !important; max-height: 520px; margin: 0 !important; object-fit: cover !important; }
.ls-legacy-single__layout { display: flex; align-items: flex-start; }
.ls-legacy-single .textPage { padding: clamp(22px,4vw,42px); border: 1px solid var(--ls-line); border-radius: 16px; background: #fff !important; }
.ls-product-sidebar { display: grid; gap: 18px; }
.ls-toc-card,.ls-other-products { overflow: hidden; padding: 22px; border: 1px solid var(--ls-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(10,64,55,.05); }
.ls-toc-card h2,.ls-other-products h2 { margin: 3px 0 16px; color: var(--ls-ink); font-size: 20px; }
.ls-toc-card ul { margin: 0; padding: 0; list-style: none; }
.ls-toc-card ul { display: grid; gap: 7px; }
.ls-toc-card li + li { border-top: 0; }
.ls-toc-card li { overflow: hidden; border: 1px solid #e1ebe8; border-radius: 9px; background: #f8fbfa; }
.ls-toc-card a { display: block; padding: 10px 14px 10px 10px; color: #4c625d !important; line-height: 1.8; text-decoration: none; }
.ls-toc-card li.is-subheading { margin-right: 13px; }
.ls-toc-card li.is-subheading a { padding-right: 18px; font-size: 12px; }
.ls-toc-card li:hover { border-color: #b9d4ce; background: #eef6f4; }
.ls-other-products__list { display: grid; gap: 10px; }
.ls-other-product { display: grid; min-width: 0; grid-template-columns: 74px minmax(0,1fr); gap: 12px; align-items: center; padding: 9px; border: 1px solid #e2ebe8; border-radius: 12px; transition: .2s; }
.ls-other-product:hover { border-color: #a8cbc4; background: #f6faf9; transform: translateX(-3px); }
.ls-other-product__media { display: grid; width: 74px; height: 64px; overflow: hidden; place-items: center; border-radius: 9px; color: var(--ls-green) !important; background: #edf5f3; }
.ls-other-product__media img { width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: contain !important; }
.ls-other-product h3 { margin: 0 0 4px; padding: 0; font-size: 13px; line-height: 1.65; }
.ls-other-product h3 a { color: #193f38 !important; text-decoration: none; }
.ls-other-product__link { color: var(--ls-green) !important; font-size: 11px; font-weight: 800; text-decoration: none; }
.ls-other-products__all { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 11px 13px; border-radius: 9px; color: #fff !important; background: var(--ls-green); font-size: 12px; font-weight: 900; text-decoration: none; }
.ls-other-products__all:hover { color: #fff !important; background: #c86622; }
.ls-other-products__empty { color: var(--ls-muted); font-size: 13px; }
@media(max-width:991px) {
    .ls-legacy-single__layout { gap: 20px; flex-direction: column-reverse; }
    .ls-legacy-single__layout > * { width: 100%; }
    .ls-product-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
    .ls-product-sidebar { grid-template-columns: 1fr; }
    .ls-legacy-single .textPage { padding: 19px 15px; }
    .ls-other-product { grid-template-columns: 68px minmax(0,1fr); }
    .ls-other-product__media { width: 68px; height: 60px; }
}

/* v7: only breadcrumbs keep a border; long article bodies scroll vertically. */
.ls-page a,
.ls-page a:visited,
body.single a,
body.single a:visited { color: var(--ls-green); }
.ls-page a:hover,
.ls-page a:focus,
body.single a:hover,
body.single a:focus { color: #c86622; }
.ls-page-card,
.ls-single-card,
body.single .container {
    border: 0;
    border-radius: 17px;
    box-shadow: 0 13px 38px rgba(10,64,55,.08);
}
.ls-content-breadcrumb,
body.single .breadcrumb_lasticsazan,
.oring-breadcrumb {
    border: 1px solid #c8ddd7 !important;
    border-radius: 12px;
    background: #fff;
}
.ls-breadcrumb-separator {
    color: #e28a42;
    font-size: 18px;
    line-height: 1;
}
.ls-rich-content,
.ls-single-content,
body.single .textPage {
    max-height: min(72vh, 820px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 12px;
    scrollbar-width: thin;
    scrollbar-color: #8abbb0 #edf4f2;
}
.ls-rich-content::-webkit-scrollbar,
.ls-single-content::-webkit-scrollbar,
body.single .textPage::-webkit-scrollbar { width: 8px; }
.ls-rich-content::-webkit-scrollbar-track,
.ls-single-content::-webkit-scrollbar-track,
body.single .textPage::-webkit-scrollbar-track { background: #edf4f2; border-radius: 20px; }
.ls-rich-content::-webkit-scrollbar-thumb,
.ls-single-content::-webkit-scrollbar-thumb,
body.single .textPage::-webkit-scrollbar-thumb { background: #8abbb0; border-radius: 20px; }
@media(max-width:600px) {
    .ls-rich-content,
    .ls-single-content,
    body.single .textPage {
        max-height: 68vh;
        overflow-y: auto;
        overflow-x: auto;
        padding-left: 6px;
    }
}
