/* relicon-lowend: the home page gets this file inside home-bundle.css; after editing, run node /home/RELiCON/build-home-css.js and bump home-bundle.css?v= in index.html (list.html links this file itself). */
/* relicon-lowend (20 Nov 2026): skeleton placeholders for content that arrives after the first paint.
   - Only with JavaScript (html.cl-skel is set by i18n-early.js in the head) and only while the box is still :empty, so a box
     fills its reserved space with the real content and the skeleton disappears by itself (no script needed for that).
   - The box keeps its final size while it waits (min-height per width), so nothing below it jumps when content arrives.
   - Shown only after 150 ms (animation delay), so a fast load never flashes it. A soft shimmer, none with reduced motion.
   - cl-skel.js: after 8 s a still-empty box gets the normal "Could not load right now. Please try again." line (or is
     hidden, for the creator card), and data-skel-to switches the skeleton off.
   - Written for older Chromium too (no inset, no :is/:has, no aspect-ratio; -webkit-mask). Bottom bar and header untouched. */
:root{--skel-a:#e8ecf2;--skel-hi:rgba(255,255,255,.55)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--skel-a:#1c2435;--skel-hi:rgba(255,255,255,.07)}}
:root[data-theme=dark]{--skel-a:#1c2435;--skel-hi:rgba(255,255,255,.07)}

/* without JavaScript nothing arrives: the creator placeholder and the Intelligence section stay out of the way, as before */
html:not(.cl-skel) #r190Creator:empty,html:not(.cl-skel) .cl-skel-sec{display:none}

html.cl-skel [data-skel]:empty:not([data-skel-to]){position:relative;display:block;overflow:hidden}
html.cl-skel [data-skel]:empty:not([data-skel-to])::before,
html.cl-skel [data-skel]:empty:not([data-skel-to])::after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;
 -webkit-animation:clSkelIn .25s ease .15s both;animation:clSkelIn .25s ease .15s both}
html.cl-skel [data-skel]:empty:not([data-skel-to])::before{background:var(--skel-a);border-radius:14px}
html.cl-skel [data-skel]:empty:not([data-skel-to])::after{background:linear-gradient(90deg,transparent 0,transparent 35%,var(--skel-hi) 50%,transparent 65%,transparent 100%);
 background-size:300% 100%;background-position:100% 0;
 -webkit-animation:clSkelIn .25s ease .15s both,clSkelSh 1.6s linear .15s infinite;animation:clSkelIn .25s ease .15s both,clSkelSh 1.6s linear .15s infinite}
html[dir=rtl].cl-skel [data-skel]:empty:not([data-skel-to])::after{-webkit-animation-direction:normal,reverse;animation-direction:normal,reverse}
@-webkit-keyframes clSkelIn{from{opacity:0}to{opacity:1}}@keyframes clSkelIn{from{opacity:0}to{opacity:1}}
@-webkit-keyframes clSkelSh{from{background-position:100% 0}to{background-position:0 0}}
@keyframes clSkelSh{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){html.cl-skel [data-skel]:empty::after{display:none}}

/* shapes: the same mask on the block and its shimmer, so only the card shapes show */
/* creator card (r190Creator): one card inside the section's 16 px side padding; heights measured in en/de/ar/vi */
html.cl-skel [data-skel=creator]:empty:not([data-skel-to]){min-height:162px;margin:12px 0}
html.cl-skel [data-skel=creator]:empty:not([data-skel-to])::before,html.cl-skel [data-skel=creator]:empty:not([data-skel-to])::after{left:16px;right:16px;border-radius:16px}
@media (min-width:401px){html.cl-skel [data-skel=creator]:empty:not([data-skel-to]){min-height:148px}}
@media (min-width:701px){html.cl-skel [data-skel=creator]:empty:not([data-skel-to]){min-height:73px}
 html.cl-skel [data-skel=creator]:empty:not([data-skel-to])::before,html.cl-skel [data-skel=creator]:empty:not([data-skel-to])::after{left:calc(50% - 574px);right:calc(50% - 574px)}}
@media (min-width:701px) and (max-width:1211px){html.cl-skel [data-skel=creator]:empty:not([data-skel-to])::before,html.cl-skel [data-skel=creator]:empty:not([data-skel-to])::after{left:16px;right:16px}}

/* card rows (Intelligence, shopping platforms): two cards on phones, four on wider screens */
html.cl-skel [data-skel=cards]:empty:not([data-skel-to])::before,html.cl-skel [data-skel=cards]:empty:not([data-skel-to])::after,
html.cl-skel:not(.cl-lt-cat) [data-skel=list]:empty:not([data-skel-to])::before,html.cl-skel:not(.cl-lt-cat) [data-skel=list]:empty:not([data-skel-to])::after{border-radius:0;
 -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(50% - 6px),transparent calc(50% - 6px),transparent calc(50% + 6px),#000 calc(50% + 6px));
 mask-image:linear-gradient(90deg,#000 0,#000 calc(50% - 6px),transparent calc(50% - 6px),transparent calc(50% + 6px),#000 calc(50% + 6px))}
html.cl-skel #intelligenceGrid[data-skel]:empty:not([data-skel-to]){min-height:367px}
html.cl-skel #platformGrid[data-skel]:empty:not([data-skel-to]){min-height:237px}
@media (min-width:701px){
 html.cl-skel [data-skel=cards]:empty:not([data-skel-to])::before,html.cl-skel [data-skel=cards]:empty:not([data-skel-to])::after{
  -webkit-mask-image:repeating-linear-gradient(90deg,#000 0,#000 calc(25% - 9px),transparent calc(25% - 9px),transparent 25%);
  mask-image:repeating-linear-gradient(90deg,#000 0,#000 calc(25% - 9px),transparent calc(25% - 9px),transparent 25%)}
 html.cl-skel #intelligenceGrid[data-skel]:empty:not([data-skel-to]){min-height:325px}
 html.cl-skel #platformGrid[data-skel]:empty:not([data-skel-to]){min-height:216px}}

/* store logo row: 74 px tiles */
html.cl-skel [data-skel=stores]:empty:not([data-skel-to]){min-height:74px}
html.cl-skel [data-skel=stores]:empty:not([data-skel-to])::before,html.cl-skel [data-skel=stores]:empty:not([data-skel-to])::after{border-radius:0;
 -webkit-mask-image:repeating-linear-gradient(90deg,#000 0,#000 88px,transparent 88px,transparent 100px);
 mask-image:repeating-linear-gradient(90deg,#000 0,#000 88px,transparent 88px,transparent 100px)}

/* list pages: card grid, rows of 296 px + 14 px gap (2 columns on phones, 4 on wider screens); it always fills the screen */
html.cl-skel:not(.cl-lt-cat) [data-skel=list]:empty:not([data-skel-to]){min-height:100vh}
html.cl-skel:not(.cl-lt-cat) [data-skel=list]:empty:not([data-skel-to])::before,html.cl-skel:not(.cl-lt-cat) [data-skel=list]:empty:not([data-skel-to])::after{
 -webkit-mask-image:repeating-linear-gradient(180deg,#000 0,#000 296px,transparent 296px,transparent 310px),linear-gradient(90deg,#000 0,#000 calc(50% - 6px),transparent calc(50% - 6px),transparent calc(50% + 6px),#000 calc(50% + 6px));
 -webkit-mask-composite:source-in;
 mask-image:repeating-linear-gradient(180deg,#000 0,#000 296px,transparent 296px,transparent 310px),linear-gradient(90deg,#000 0,#000 calc(50% - 6px),transparent calc(50% - 6px),transparent calc(50% + 6px),#000 calc(50% + 6px));
 mask-composite:intersect}
@media (min-width:701px){html.cl-skel:not(.cl-lt-cat) [data-skel=list]:empty:not([data-skel-to])::before,html.cl-skel:not(.cl-lt-cat) [data-skel=list]:empty:not([data-skel-to])::after{
 -webkit-mask-image:repeating-linear-gradient(180deg,#000 0,#000 300px,transparent 300px,transparent 314px),repeating-linear-gradient(90deg,#000 0,#000 calc(25% - 9px),transparent calc(25% - 9px),transparent 25%);
 mask-image:repeating-linear-gradient(180deg,#000 0,#000 300px,transparent 300px,transparent 314px),repeating-linear-gradient(90deg,#000 0,#000 calc(25% - 9px),transparent calc(25% - 9px),transparent 25%)}}

/* the timeout line */
.cl-skel-msg{grid-column:1/-1;-webkit-box-flex:1;-webkit-flex:1 1 100%;flex:1 1 100%;width:auto;max-width:none;margin:8px 0;padding:14px 16px;border-radius:12px;background:var(--skel-a);font-size:14px;text-align:center;opacity:.9}

/* list pages: list.js writes a "Loading…" line at once (p.cl-loading); while it is the grid's only child it is drawn as the
   skeleton instead (its text stays for screen readers, visually hidden) */
html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child{grid-column:1/-1;width:auto;position:relative;display:block;overflow:hidden;min-height:100vh;margin:0;padding:0;color:transparent!important;font-size:1px;background:none;border:0}
html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child::before,html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child::after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;
 -webkit-animation:clSkelIn .25s ease .15s both;animation:clSkelIn .25s ease .15s both;
 -webkit-mask-image:repeating-linear-gradient(180deg,#000 0,#000 296px,transparent 296px,transparent 310px),linear-gradient(90deg,#000 0,#000 calc(50% - 6px),transparent calc(50% - 6px),transparent calc(50% + 6px),#000 calc(50% + 6px));
 -webkit-mask-composite:source-in;
 mask-image:repeating-linear-gradient(180deg,#000 0,#000 296px,transparent 296px,transparent 310px),linear-gradient(90deg,#000 0,#000 calc(50% - 6px),transparent calc(50% - 6px),transparent calc(50% + 6px),#000 calc(50% + 6px));
 mask-composite:intersect}
html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child::before{background:var(--skel-a)}
html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child::after{background:linear-gradient(90deg,transparent 0,transparent 35%,var(--skel-hi) 50%,transparent 65%,transparent 100%);background-size:300% 100%;background-position:100% 0;
 -webkit-animation:clSkelIn .25s ease .15s both,clSkelSh 1.6s linear .15s infinite;animation:clSkelIn .25s ease .15s both,clSkelSh 1.6s linear .15s infinite}
@media (prefers-reduced-motion:reduce){html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child::after{display:none}}
@media (min-width:701px){html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child::before,html.cl-skel:not(.cl-lt-cat) [data-skel=list]>.cl-loading:only-child::after{
 -webkit-mask-image:repeating-linear-gradient(180deg,#000 0,#000 300px,transparent 300px,transparent 314px),repeating-linear-gradient(90deg,#000 0,#000 calc(25% - 9px),transparent calc(25% - 9px),transparent 25%);
 mask-image:repeating-linear-gradient(180deg,#000 0,#000 300px,transparent 300px,transparent 314px),repeating-linear-gradient(90deg,#000 0,#000 calc(25% - 9px),transparent calc(25% - 9px),transparent 25%)}}
[data-skel][data-skel-msg]{display:block!important;min-height:0!important;overflow:visible!important}
[data-skel][data-skel-msg]>.cl-skel-msg{width:auto!important;max-width:none!important;min-width:0!important;-webkit-box-flex:1!important;-webkit-flex:1 1 100%!important;flex:1 1 100%!important;grid-column:1/-1!important}
#intelligenceGrid[data-skel-msg],#storeGrid[data-skel-msg],#platformGrid[data-skel-msg],#listGrid[data-skel-msg]{display:block!important}
html body #intelligenceGrid#intelligenceGrid#intelligenceGrid[data-skel-msg]{display:block!important}
/* the creator placeholder sits where r190-home.js will put the card (same order as #categories, set inline by r190 later) */
main#home>#r190Creator{-webkit-box-ordinal-group:3;-webkit-order:2;order:2}
/* hero: the strip under the banner words starts at the height hero-ad.js gives it for the usual three detail lines (was 104 px) */
.ha-gap-info{height:111px}
/* list.html?type=products: room for the filter bar (57 px) until cl-filters.js puts it in front of the list; the skeleton stays visible while cl-jiji keeps the cards hidden */
html.cl-lt-products #listGrid{margin-top:81px}
html.cl-lt-products .clf-bar+#listGrid{margin-top:24px}
body.clj-prod #listGrid:not(.clj-shown)>.cl-loading:only-child{visibility:visible!important}
/* relicon-lowend E: search / Ask AI loading state in the results view (cl-search-skel.js writes .cl-ss after 150 ms).
   While the view is open the results section keeps a screen of height, so the footer does not jump when results arrive. */
html.clr-on #results{min-height:calc(100vh - 30px)}
#resultsGrid .cl-ss-line{margin:0 0 12px;font-size:14px;opacity:.85}
.cl-ss{display:block;-webkit-animation:clSkelIn .25s ease both;animation:clSkelIn .25s ease both}
.cl-ss-head{height:22px;width:38%;margin:4px 0 14px;border-radius:8px;background:var(--skel-a)}
.cl-ss-grid{display:-ms-grid;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px;-webkit-box-align:start;align-items:start}
@media (min-width:760px){.cl-ss-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1100px){.cl-ss-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cl-ss-card{min-width:0;padding-bottom:10px;border-radius:14px;overflow:hidden;background:var(--card,transparent)}
.cl-ss-img{height:0;padding-bottom:100%;border-radius:14px;background:var(--skel-a)}
.cl-ss-img.tall{padding-bottom:133%}
.cl-ss-l{height:11px;margin:10px 8px 0;border-radius:6px;background:var(--skel-a)}
.cl-ss-l.w80{width:80%}.cl-ss-l.w60{width:60%}.cl-ss-l.w40{width:40%}.cl-ss-l.b{height:15px}
.cl-ss-img,.cl-ss-l,.cl-ss-head{background-image:linear-gradient(90deg,transparent 0,transparent 35%,var(--skel-hi) 50%,transparent 65%,transparent 100%);background-size:300% 100%;background-position:100% 0;
 -webkit-animation:clSkelSh 1.6s linear infinite;animation:clSkelSh 1.6s linear infinite}
[dir=rtl] .cl-ss-l,[dir=rtl] .cl-ss-head{margin-right:8px;margin-left:auto}
[dir=rtl] .cl-ss-head{margin-right:0}
@media (prefers-reduced-motion:reduce){.cl-ss,.cl-ss-img,.cl-ss-l,.cl-ss-head{-webkit-animation:none;animation:none;background-image:none}}
@media (max-width:759px){.cl-ss-grid{margin:0 -8px;grid-gap:9px;gap:9px}}
/* the skeleton never grows past the reserved area, so a short "No results" or error line does not pull the footer up */
html.clr-on #resultsGrid .cl-ss{max-height:calc(100vh - 290px);overflow:hidden}

/* intel-skel (20 Nov 2026): home Intelligence. index.html holds six skeleton cards (.cl-sk) built from the SAME Products
   card markup (article.tile-deal.tile-product, .tile-media, .tile-info, .tile-title, .p-price, .own-price, .p-store), so
   cl-jiji-res.css/js give them the real card size, the two-column stepped layout and the photo box aspect-ratio
   (1/1, tall cards 3/4.4; cl-old.js gives the heights on Chromium 80-83). Here only the grey bars. app.js replaces them. */
#intelligenceGrid .cl-sk{pointer-events:none}
html:root body #intelligenceGrid .r86-grid.clj-res article.tile-deal.cl-sk.cl-sk .tile-media{background:var(--skel-a)!important;box-shadow:none!important;overflow:hidden}
#intelligenceGrid .cl-sk .tile-media::after{content:"";position:absolute;top:0;bottom:0;left:0;right:0;
 background:linear-gradient(90deg,transparent 0,transparent 35%,var(--skel-hi) 50%,transparent 65%,transparent 100%);background-size:300% 100%;background-position:100% 0;
 -webkit-animation:clSkelSh 1.6s linear infinite;animation:clSkelSh 1.6s linear infinite}
html[dir=rtl] #intelligenceGrid .cl-sk .tile-media::after{-webkit-animation-direction:reverse;animation-direction:reverse}
@media (prefers-reduced-motion:reduce){#intelligenceGrid .cl-sk .tile-media::after{display:none}}
#intelligenceGrid .cl-sk .tile-title,#intelligenceGrid .cl-sk .p-price,#intelligenceGrid .cl-sk .own-price,#intelligenceGrid .cl-sk .p-store,#intelligenceGrid .cl-sk-b,#intelligenceGrid .cl-sk-e{
 display:block!important;color:transparent!important;background-repeat:no-repeat!important;overflow:hidden;-webkit-box-flex:0;-webkit-flex:none;flex:none}
#intelligenceGrid .cl-sk .tile-title{height:39px;background-image:linear-gradient(var(--skel-a),var(--skel-a)),linear-gradient(var(--skel-a),var(--skel-a))!important;
 background-size:96% 14px,64% 14px!important;background-position:0 3px,0 22px!important}
#intelligenceGrid .cl-sk .p-price{height:43px;background-image:linear-gradient(var(--skel-a),var(--skel-a)),linear-gradient(var(--skel-a),var(--skel-a))!important;
 background-size:58% 18px,44% 12px!important;background-position:0 3px,0 26px!important}
#intelligenceGrid .cl-sk .own-price{height:14px;background-image:linear-gradient(var(--skel-a),var(--skel-a))!important;background-size:40% 10px!important;background-position:0 2px!important}
#intelligenceGrid .cl-sk .p-store{height:16px;background-image:linear-gradient(var(--skel-a),var(--skel-a))!important;background-size:50% 11px!important;background-position:0 3px!important}
[dir=rtl] #intelligenceGrid .cl-sk .tile-title,[dir=rtl] #intelligenceGrid .cl-sk .p-price,[dir=rtl] #intelligenceGrid .cl-sk .own-price,[dir=rtl] #intelligenceGrid .cl-sk .p-store{background-position-x:100%!important}
#intelligenceGrid .cl-sk-b{width:98px;height:26px;margin-top:8px;box-sizing:border-box;border:1.5px solid var(--skel-a);border-radius:999px}
#intelligenceGrid .cl-sk-e{display:none!important}
html.cl-earn #intelligenceGrid .cl-sk-e{display:block!important;height:38px;margin:6px 0 0;border-radius:8px;background:var(--skel-a)}
/* earn line ("You earn …", creators only). (1) For a creator (html.cl-earn, cl-skel.js) its place is kept while it waits for the
   rates. (2) Its box is always two lines high, so the English → page-language swap cannot change the card height. (3) It stays
   invisible until r195-i18n.js has written it in the page language (it then sets dir); a 2.5 s fallback shows it anyway. */
html:root body #intelligenceGrid article.tile-product .r181-earn{min-height:38px;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;
 -webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}
html.cl-earn body #intelligenceGrid article.tile-product .r181-earn[hidden]{display:block!important;visibility:hidden}
#intelligenceGrid article.tile-product .r181-earn:not([dir]),#intelligenceGrid article.tile-product .r181-earn[hidden]{visibility:hidden;-webkit-animation:clEarnShow 0s 2.5s forwards;animation:clEarnShow 0s 2.5s forwards}
#intelligenceGrid article.tile-product .r181-earn[hidden]{-webkit-animation:none;animation:none}
@-webkit-keyframes clEarnShow{to{visibility:visible}}@keyframes clEarnShow{to{visibility:visible}}
/* the real grid runs to the screen edges (cl-jiji-res.js edge()); the skeleton does the same from first paint on phones,
   inside the section's 16 px padding (edge() then sets the same value inline) */
/* #intelligenceGrid is still styled by older sheets as a sideways row of 180 px columns; since home-F2 it only ever holds one
   cards grid (or a message line), so it is a plain block and the cards grid has the full width before cl-jiji-res.js runs */
html body #intelligenceGrid#intelligenceGrid{display:block!important;overflow:visible!important;padding:0!important}
@media (max-width:700px){html body.cl-jres #intelligenceGrid>.r86-grid.cl-sk-grid:not(.clj-m){margin-left:-16px;margin-right:-16px}}
html.cl-rtl0 #intelligenceGrid>.r86-grid.cl-sk-grid{direction:rtl}
