/* Generated by _build/rtl-css.mjs from assets/css/inci-pages.css for the Arabic (right-to-left) edition. Do not edit: edit the original. */
/* INCI dictionary: hub (inci/index.html) and entry pages (inci/<slug>.html). Growth module inci-pages. */

/* ---------- entry pages ---------- */
.inci-head { padding-bottom: 8px; }
.inci-head .eyebrow a { color: inherit; text-decoration: none; }
.inci-head .eyebrow a:hover { color: var(--brass-strong); }
.inci-name { overflow-wrap: anywhere; hyphens: auto; }
.inci-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.inci-fn { font: 400 .8rem var(--ui); letter-spacing: normal; text-transform: uppercase; color: var(--muted); }
.inci-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin: 28px auto 56px; }
@media (min-width: 900px) { .inci-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } }
.inci-main section { margin-bottom: 36px; }
.inci-roles { padding-right: 1.2em; }
.inci-flag { position: relative; padding: 20px 24px 8px 22px; background: var(--paper); border: 1px solid var(--line); }
.inci-flag::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: var(--s-low); }
.inci-flag[data-flag="watch"]::before { background: var(--s-moderate); }
.inci-flag[data-flag="allergen"]::before { background: var(--g-c); }
.inci-flag[data-flag="avoid"]::before { background: var(--s-high); }
.inci-flag h2 { margin-top: 0; }
.inci-remark-list, .prose .inci-remark-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.inci-remark-list li { padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); }
.inci-remark-list strong { display: block; font: 500 0.858rem var(--ui); text-transform: uppercase; letter-spacing: normal; margin-bottom: 4px; }
.inci-remark-list li[data-k="ban"] strong { color: var(--s-high); }
.inci-remark-list li[data-k="rules"] strong, .inci-remark-list li[data-k="sun"] strong, .inci-remark-list li[data-k="preg"] strong, .inci-remark-list li[data-k="kids"] strong { color: var(--s-moderate); }
.inci-remark-list li[data-k="label"] strong, .inci-remark-list li[data-k="allergy"] strong { color: var(--g-c); }
.inci-remark-list li[data-k="env"] strong { color: var(--s-low); }
.inci-card { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 20px; }
.inci-card p { margin-bottom: .8em; }
.inci-card h3 { margin-top: 1em; }
.inci-grade { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inci-uses, .prose .inci-uses { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.inci-uses a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.inci-uses a:hover span:last-child { color: var(--brass-strong); }
.inci-rec-list { padding-right: 1.2em; }
.inci-rec-list li { margin-bottom: .4em; }
.inci-side .pro-box { margin-bottom: 20px; }
.inci-facts dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0 0 14px; }
.inci-facts dt { font: 500 0.78rem var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--muted); margin-top: 10px; }
.inci-facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- lists (hub and related entries) ---------- */
.inci-list, .prose .inci-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
@media (min-width: 700px) { .inci-list, .prose .inci-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .inci-by-fam .inci-list, .inci-by-az .inci-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inci-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.inci-item a { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; }
.inci-item a:hover .inci-i { color: var(--brass-strong); }
.inci-i { font: 500 .95rem/1.3 var(--body); overflow-wrap: anywhere; }
.inci-c { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.inci-item .flag { flex: none; }
.inci-list-compact { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .inci-list-compact, .prose .inci-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- hub ---------- */
.inci-tools-row { margin-top: 20px; }
.inci-hub { margin-bottom: 64px; }
.inci-filter { padding: 16px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.inci-filter fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inci-filter legend { float: right; font: 500 0.78rem var(--ui); text-transform: uppercase; letter-spacing: normal; color: var(--muted); margin-left: 6px; padding: 0; }
.inci-filter .chip { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.inci-filter .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inci-filter .chip b { font-weight: 500; opacity: .7; }
.inci-filter .chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.inci-filter .chip:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.inci-filter-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; margin-top: 14px; }
.inci-fam-field { flex: 1 1 220px; }
.inci-q-field { flex: 2 1 260px; }
.inci-q-field[hidden] { display: none; }
.inci-fam-field select, .inci-q-field input { width: 100%; min-width: 0; }
.inci-status { margin: 10px 0 0; min-height: 1.2em; }
.inci-none { margin: 8px 0 0; }
.inci-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 28px; font: 400 0.86rem var(--ui); }
.inci-jump a { text-decoration: none; color: var(--muted); }
.inci-jump a:hover { color: var(--brass-strong); }
.inci-letters { gap: 6px 12px; font-size: .95rem; }
.inci-group { margin-bottom: 40px; scroll-margin-top: 110px; }
.inci-group h2 { margin-bottom: 4px; }
.inci-group > p { margin-bottom: 12px; }
.inci-about { margin-top: 48px; max-width: 760px; }
.inci-flag-key { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 18px; }
@media (min-width: 700px) { .inci-flag-key { grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; } }
.inci-flag-key dd { margin: 0 0 10px; }

/* Order: by function (default) or A–Z. */
.inci-by-az { display: none; }
.inci-hub:has(input[name="view"][value="az"]:checked) .inci-by-az { display: block; }
.inci-hub:has(input[name="view"][value="az"]:checked) .inci-by-fam { display: none; }

/* Filters that work without JavaScript (the script adds text search and hides empty groups). */
.inci-hub:has(input[name="flag"][value="ok"]:checked) .inci-item[data-flag]:not([data-flag="ok"]),
.inci-hub:has(input[name="flag"][value="watch"]:checked) .inci-item[data-flag]:not([data-flag="watch"]),
.inci-hub:has(input[name="flag"][value="allergen"]:checked) .inci-item[data-flag]:not([data-flag="allergen"]),
.inci-hub:has(input[name="flag"][value="avoid"]:checked) .inci-item[data-flag]:not([data-flag="avoid"]) { display: none; }
.inci-hub:has(input[name="flag"][value="ok"]:checked) .inci-group:not(:has([data-flag="ok"])),
.inci-hub:has(input[name="flag"][value="watch"]:checked) .inci-group:not(:has([data-flag="watch"])),
.inci-hub:has(input[name="flag"][value="allergen"]:checked) .inci-group:not(:has([data-flag="allergen"])),
.inci-hub:has(input[name="flag"][value="avoid"]:checked) .inci-group:not(:has([data-flag="avoid"])) { display: none; }
.inci-hub:has(#inci-fam option[value="humectant"]:checked) .inci-item[data-fam]:not([data-fam="humectant"]),
.inci-hub:has(#inci-fam option[value="emollient"]:checked) .inci-item[data-fam]:not([data-fam="emollient"]),
.inci-hub:has(#inci-fam option[value="texture"]:checked) .inci-item[data-fam]:not([data-fam="texture"]),
.inci-hub:has(#inci-fam option[value="cleanser"]:checked) .inci-item[data-fam]:not([data-fam="cleanser"]),
.inci-hub:has(#inci-fam option[value="conditioning"]:checked) .inci-item[data-fam]:not([data-fam="conditioning"]),
.inci-hub:has(#inci-fam option[value="preservative"]:checked) .inci-item[data-fam]:not([data-fam="preservative"]),
.inci-hub:has(#inci-fam option[value="antioxidant"]:checked) .inci-item[data-fam]:not([data-fam="antioxidant"]),
.inci-hub:has(#inci-fam option[value="active"]:checked) .inci-item[data-fam]:not([data-fam="active"]),
.inci-hub:has(#inci-fam option[value="soothing"]:checked) .inci-item[data-fam]:not([data-fam="soothing"]),
.inci-hub:has(#inci-fam option[value="uv"]:checked) .inci-item[data-fam]:not([data-fam="uv"]),
.inci-hub:has(#inci-fam option[value="fragrance"]:checked) .inci-item[data-fam]:not([data-fam="fragrance"]),
.inci-hub:has(#inci-fam option[value="colorant"]:checked) .inci-item[data-fam]:not([data-fam="colorant"]),
.inci-hub:has(#inci-fam option[value="other"]:checked) .inci-item[data-fam]:not([data-fam="other"]) { display: none; }
.inci-hub:has(#inci-fam option[value="humectant"]:checked) .inci-group:not(:has([data-fam="humectant"])),
.inci-hub:has(#inci-fam option[value="emollient"]:checked) .inci-group:not(:has([data-fam="emollient"])),
.inci-hub:has(#inci-fam option[value="texture"]:checked) .inci-group:not(:has([data-fam="texture"])),
.inci-hub:has(#inci-fam option[value="cleanser"]:checked) .inci-group:not(:has([data-fam="cleanser"])),
.inci-hub:has(#inci-fam option[value="conditioning"]:checked) .inci-group:not(:has([data-fam="conditioning"])),
.inci-hub:has(#inci-fam option[value="preservative"]:checked) .inci-group:not(:has([data-fam="preservative"])),
.inci-hub:has(#inci-fam option[value="antioxidant"]:checked) .inci-group:not(:has([data-fam="antioxidant"])),
.inci-hub:has(#inci-fam option[value="active"]:checked) .inci-group:not(:has([data-fam="active"])),
.inci-hub:has(#inci-fam option[value="soothing"]:checked) .inci-group:not(:has([data-fam="soothing"])),
.inci-hub:has(#inci-fam option[value="uv"]:checked) .inci-group:not(:has([data-fam="uv"])),
.inci-hub:has(#inci-fam option[value="fragrance"]:checked) .inci-group:not(:has([data-fam="fragrance"])),
.inci-hub:has(#inci-fam option[value="colorant"]:checked) .inci-group:not(:has([data-fam="colorant"])),
.inci-hub:has(#inci-fam option[value="other"]:checked) .inci-group:not(:has([data-fam="other"])) { display: none; }
/* With a function chosen, the family jump links have nothing to jump between. */
.inci-hub:has(#inci-fam option:checked:not([value="all"])) .inci-by-fam .inci-jump { display: none; }
/* Once the script runs it filters with the hidden attribute, which also covers flag + function combinations. */
.inci-hub .inci-item[hidden], .inci-hub .inci-group[hidden] { display: none; }
