/* Small-screen adaptation of the existing Joud website. Desktop artwork is retained. */
.joud-menu-toggle,
.joud-category-toggle { display: none; }
.joud-public a:focus-visible,
.joud-public button:focus-visible,
.joud-public input:focus-visible,
.joud-public select:focus-visible,
.joud-public textarea:focus-visible { outline: 3px solid #0861a0; outline-offset: 3px; }
#nav > li:focus-within > .sub-product,
#nav > li:focus-within > .sub-product2,
#nav > li.is-open > .sub-product,
#nav > li.is-open > .sub-product2 { visibility: visible; }
.joud-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.joud-table-hint { display: none; }

/* Keep high-resolution brand artwork at the original compact heading scale. */
#content-thick-in > img[src*="/brands/"],
#description > img { max-width: min(180px, 100%); max-height: 60px; width: auto; height: auto; object-fit: contain; }

/* Clip the honeypot locally: negative offscreen positions widen RTL documents. */
#formID > div[aria-hidden="true"] {
  position: absolute !important; top: 0 !important; left: 0 !important; right: auto !important; bottom: auto !important;
  width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; pointer-events: none;
}

@media screen and (max-width: 990px) {
  .joud-public { font-size: 14px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .joud-public *, .joud-public *::before, .joud-public *::after { box-sizing: border-box; }
  .joud-public p { font-size: 14px; line-height: 1.6; }
  .joud-public img { max-width: 100%; }
  #container { width: 100%; max-width: 990px; overflow: visible; display: flow-root; }
  #header { float: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; width: 100%; height: auto; min-height: 80px; padding: 12px 16px; }
  #logo { float: none; flex: 0 1 292px; width: 292px; max-width: 100%; height: auto; margin: 0; }
  #logo h1 { line-height: 1; }
  #logo img { display: block; width: 100%; height: auto; }
  #right-header { float: none; flex: 1 1 215px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; width: auto; min-width: 0; }
  #lang { float: none; width: auto; height: auto; margin: 0; }
  #lang p { text-align: start; }
  #lang a { display: inline-block; padding-block: 8px; }
  #bg-change { position: static; }
  #bg-change p { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 11px; line-height: 1.3; }
  #bg-change p br { display: none; }
  #bg-change .bg { width: 26px; height: 26px; margin: 0; top: 0; }
  #search { float: none; flex: 0 1 218px; width: 218px; max-width: 100%; height: 50px; margin: 0; padding: 3px; border-radius: 14px; }
  #search-form { display: flex; align-items: center; height: 100%; }
  #search .txt-search { flex: 1 1 auto; min-width: 0; width: auto; height: 44px; float: none; margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 16px; }
  #search .submit-btn { flex: 0 0 44px; width: 44px; height: 44px; float: none; margin: 0; padding: 0; border: 0; border-radius: 8px; background-color: transparent; background-position: center; background-size: 20px 20px; -webkit-appearance: none; appearance: none; }
  #menu { float: none; width: 100%; height: auto; display: flow-root; }
  .joud-menu-toggle, .joud-category-toggle { width: 100%; min-height: 46px; border: 0; padding: 12px 16px; font: bold 15px/1.4 Arial, Helvetica, sans-serif; text-align: start; color: #0861a0; background: #f4f6f8; cursor: pointer; }
  .joud-menu-toggle::after, .joud-category-toggle::after { content: "+"; float: inline-end; font-size: 21px; line-height: 20px; }
  .joud-menu-toggle[aria-expanded="true"]::after, .joud-category-toggle[aria-expanded="true"]::after { content: "−"; }
  .joud-mobile-ready .joud-menu-toggle { display: block; }
  #nav { float: none; width: 100%; height: auto; margin: 0; padding: 0; }
  .joud-mobile-ready #nav:not(.is-open) { display: none; }
  #nav > li { display: block; float: none; width: 100%; height: auto; min-height: 44px; line-height: 1.4; border-top: 1px solid #e0e5e9; }
  #nav > li > a, #nav > li > a:hover { float: none; width: 100%; height: auto; min-height: 44px; margin: 0; padding: 12px 16px !important; border: 0; font-size: 14px; line-height: 1.4; }
  #nav > li.joud-subnav > a::after { content: "+"; float: inline-end; font-size: 19px; }
  #nav > li.joud-subnav.is-open > a::after { content: "−"; }
  #nav .sub-product, #nav .sub-product2 { position: static; float: none; top: auto; inset-inline: auto; width: 100%; height: auto; padding: 8px 16px 12px; border: 0; visibility: visible; background: #edf2f6; }
  .joud-mobile-ready #nav > li.joud-subnav > .sub-product,
  .joud-mobile-ready #nav > li.joud-subnav > .sub-product2 { display: none; }
  .joud-mobile-ready #nav > li.joud-subnav.is-open > .sub-product,
  .joud-mobile-ready #nav > li.joud-subnav.is-open > .sub-product2 { display: flow-root; }
  #nav .products-list, #nav .products-list2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 20px; float: none !important; width: 100%; }
  #nav .products-list li, #nav .products-list2 li { float: none !important; width: 100% !important; height: auto !important; margin: 0 !important; }
  #nav .products-list li a, #nav .products-list2 li a { float: none; width: 100% !important; height: auto !important; min-height: 40px; padding: 10px 4px !important; font-size: 14px !important; line-height: 1.4 !important; }
  #nav .products-list li ul, #nav .products-list2 li ul { float: none !important; width: 100%; padding-inline-start: 12px !important; }
  #nav .products-list li ul li a, #nav .products-list2 li ul li a { font-weight: normal !important; }
  #banny { float: none; display: block; width: 100%; height: auto; aspect-ratio: 990 / 297; margin-top: 10px; }
  #banny img, #banny object, #banny embed { display: block; width: 100%; height: 100% !important; max-height: none; object-fit: contain; }
  #banny img.joud-evo-banner { padding: clamp(12px, 4.2vw, 42px) 18% !important; }
  #content-home, #content { float: none; width: 100%; margin: 0; padding: 20px 16px 32px; background-image: none; }
  #content-home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
  #welcome, #latest-news { float: none; width: auto; min-width: 0; margin: 0; }
  #welcome h2 { width: 100%; height: auto; min-height: 38px; font-size: 26px; line-height: 1.35; padding-block: 5px; }
  #latest-news h3 { font-size: 20px; }
  .home-categories { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; float: none; width: 100%; margin: 0; }
  .home-categories > li { float: none; width: 100%; height: auto; min-height: 160px; margin: 0; font-size: 16px; }
  .home-categories > li > a { float: none; width: 100%; height: 112px; background-size: contain; background-position: center; }
  .home-categories .products { float: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .home-categories .products li { float: none; width: 100%; height: auto; margin: 0; }
  .home-categories .products li a { float: none; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 6px 8px; overflow: visible; font-size: 13px; line-height: 1.4; }
  #content { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 20px; align-items: start; }
  #content-thin { float: none; width: auto; min-width: 0; }
  #content-thick { float: none; width: auto; min-width: 0; margin: 0; padding: 0; }
  #content-thick-in { float: none; display: flow-root; width: 100%; min-width: 0; padding: 14px 0 0; overflow-wrap: anywhere; }
  #content-thick-in img { max-width: 100%; height: auto; }
  #title { float: none; display: flow-root; }
  #content-thick h2 { float: none; width: 100%; font-size: 28px; line-height: 1.3; overflow-wrap: anywhere; }
  #tree { float: none; width: 100%; margin: 6px 0 0; }
  #tree p { text-align: start; font-size: 12px; line-height: 1.5; }
  #left-menu { float: none; width: 100%; }
  #left-menu h3 { width: 100%; height: auto; min-height: 36px; padding: 5px 14px; font-size: 19px; line-height: 1.4; }
  #products-listing li { float: none; display: flow-root; width: 100%; height: auto; clear: both; }
  #products-listing li a { float: none; display: block; width: 100%; min-height: 42px; height: auto; padding-block: 8px; line-height: 1.5; font-size: 14px; cursor: pointer; }
  #products-listing li ul { float: none; width: 100%; margin: 0; }
  #products-listing li ul li { float: none; width: 100%; height: auto; }
  #products-listing li ul li a { float: none; width: 100%; height: auto; min-height: 40px; font-size: 13px; }
  #content-thick-in > .products { float: none; width: 100%; clear: both; padding-top: 10px; }
  #content-thick-in > .products > ul { float: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; width: 100%; }
  #content-thick-in > .products > ul > li { float: none; width: 100%; height: auto; min-height: 235px; margin: 0; padding: 10px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
  #content-thick-in > .products > ul > li > a { width: 100%; height: 173px; background-size: contain; }
  #content-thick-in > .products strong { font-size: 14px; line-height: 1.5; }
  .comparison { min-height: 40px; height: auto; width: auto; min-width: 140px; padding: 8px 12px; line-height: 1.5; background-size: 100% 100%; }
  #content-thick-in > a[rel^="lyteshow"] { float: inline-start; display: block; width: 42%; max-width: 300px; padding-inline-end: 14px; }
  #content-thick-in > a[rel^="lyteshow"] > img { float: none !important; display: block; max-width: 100%; height: auto; }
  #description { float: inline-end; width: 58%; margin: 0; }
  /* The inherited templates float this logo inline; keep it above the product copy. */
  #description > img { float: none !important; display: block; max-width: min(180px, 100%); max-height: 72px; width: auto; height: auto; margin: 0 0 12px; margin-inline-end: auto; object-fit: contain; }
  #description p, #desc-text, #desc-text h3 { float: none; }
  #colors { display: flex; flex-wrap: wrap; gap: 6px 12px; }
  #colors li { float: none; width: auto; min-width: 130px; height: auto; min-height: 28px; margin: 0; }
  #text-tab { float: none; clear: both; padding-top: 20px; }
  ul.tabs { display: flex; flex-wrap: wrap; height: auto; }
  ul.tabs li { float: none; flex: 1 1 auto; }
  ul.tabs a { float: none; display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 44px; padding: 9px 12px; font-size: 14px; line-height: 1.4; }
  .panes > div { padding: 14px; }
  #formID, #contactform, .personal { float: none; width: 100%; max-width: 100%; min-width: 0; }
  #formID > div:not([aria-hidden="true"]) { float: none !important; width: 100% !important; }
  #formID fieldset, #contactform fieldset { float: none !important; display: block; width: 100% !important; min-inline-size: 0; margin: 0 0 18px; padding: 12px 14px !important; }
  #formID legend { max-width: 100%; margin-inline: 0; font-size: 18px; line-height: 1.4; letter-spacing: normal; }
  #formID label { display: block; height: auto; font-size: 14px; line-height: 1.5; text-align: start; }
  #formID label > span { display: block; width: 100%; margin: 5px 0; font-size: 14px; }
  #formID input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]),
  #formID select, #formID textarea, #contactform .txtField, #contactform .comboBox { float: none; display: block; width: 100% !important; max-width: 100%; min-width: 0; height: auto; min-height: 44px; margin: 4px 0 12px !important; padding: 9px 10px; font-size: 16px; line-height: 1.4; border: 1px solid #b1bdc7; border-radius: 4px; color: #333; background: #fff; }
  #formID textarea { min-height: 112px; resize: vertical; }
  #formID input[type="file"] { font-size: 14px; padding: 8px; overflow-wrap: anywhere; }
  #formID input[type="radio"], #formID input[type="checkbox"] { width: 20px; height: 20px; margin: 8px 5px; vertical-align: middle; }
  #formID .button { min-width: 88px; min-height: 44px; height: auto; padding: 10px 16px; margin-block: 6px; font-size: 15px; line-height: 1.4; }
  #formID table { max-width: 100%; width: 100%; }
  #formID .personal > table, #formID .personal > table > tbody,
  #formID .personal > table > tbody > tr, #formID .personal > table > tbody > tr > td { display: block; width: 100% !important; height: auto; }
  #formID .personal > table > tbody > tr > td { padding: 3px 0; }
  #formID .personal > table > tbody > tr > td > p { padding-top: 8px; }
  #vacancies { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-block: 12px 24px; }
  #vacancies li { float: none; width: 100%; height: auto; min-height: 160px; margin: 0; padding: 18px; }
  #vacancies li p { font-size: 14px; line-height: 1.6; }
  #vacancies li h3, #vacancies li h4 { font-size: 16px; line-height: 1.5; }
  .job-deadline { position: static; width: auto; height: auto; padding: 0; text-align: start; }
  .job-details { position: static; width: auto; height: auto; min-height: 40px; display: inline-block; margin-top: 12px; padding: 9px 12px; font-size: 14px; }
  .news li { float: none; display: flow-root; width: 100%; }
  .smallimage { max-width: 42%; }
  #logos { float: none; width: 100%; height: auto; padding: 12px; }
  #logos .jMyCarousel { width: 100% !important; height: auto !important; overflow: visible !important; }
  #logos .jMyCarousel > ul { position: static !important; inset: auto !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 100% !important; height: auto !important; margin: 0; padding: 0; list-style: none; }
  #logos .jMyCarousel > ul > li { float: none !important; display: block !important; width: 125px; max-width: 50%; height: auto; }
  #logos .jMyCarousel > ul > li.joud-carousel-copy { display: none !important; }
  #logos .jMyCarousel > ul > li > a { float: none !important; display: block; width: 100%; min-height: 76px; }
  #logos img { float: none; width: 100%; height: 80px; object-fit: contain; }
  #logos .prev, #logos .next { display: none !important; }
  #footer { float: none; width: 100%; height: auto; min-height: 80px; padding: 18px 16px; }
  #footer p { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
  #footer #loadContent { line-height: 1; }
  .joud-table-hint.is-needed { display: block; margin: 6px 0 12px; color: #626d77; font-size: 12px; }
}

@media screen and (max-width: 760px) {
  #content { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .joud-mobile-ready .joud-category-toggle { display: block; border: 1px solid #d8e0e6; border-radius: 6px; }
  .joud-mobile-ready #left-menu:not(.is-open) { display: none; }
  #content-home { grid-template-columns: minmax(0, 1fr); }
  #left-menu { margin-top: 8px; }
  #products-listing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  #products-listing > li { align-self: start; }
}

@media screen and (max-width: 600px) {
  #header { gap: 12px; }
  #right-header { flex-basis: 100%; justify-content: space-between; }
  #search { flex-basis: 100%; width: 100%; }
  #content-thick-in > a[rel^="lyteshow"] { float: none; width: 100%; max-width: 280px; margin: 0 auto 20px; padding: 0; }
  #description { float: none; width: 100%; }
  .home-categories { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .joud-public { scroll-behavior: auto; }
}
