/* Calken v157: fixes from the final UI/UX audit (18 Nov 2026). Loaded last, so it only adjusts what is already there. */

/* 1. Portfolio: a featured product with no feature artwork shows its product art, centred on its own colours. */
.pf-feat-art.pf-feat-fb{display:flex;align-items:center;justify-content:center}
.pf-feat-art.pf-feat-fb img{width:min(58%,300px);height:auto;object-fit:contain;border-radius:22%}

/* 2. Passport: the same side margin as every other page on phones. */
@media (max-width:760px){
  #app .pp{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));box-sizing:border-box}
}

/* 3. Phone menus (Explore, Me): a solid sheet, so the page behind does not read through. */
#mob-sheet{background:rgba(18,18,20,.97);-webkit-backdrop-filter:blur(20px) saturate(1.2);backdrop-filter:blur(20px) saturate(1.2)}
html[data-theme=light] #mob-sheet{background:rgb(244,245,247)}
#mob-scrim{background:rgba(0,0,0,.62)}

/* 4. Light theme: outline buttons kept white text on an ivory page and could not be seen. */
html[data-theme=light] #app .btn:not(.fill):not(.on):not([style*="background"]){color:#1a1917;border-color:rgba(26,25,23,.28)}
html[data-theme=light] #app .btn:not(.fill):not(.on):not([style*="background"]):hover{background:rgba(26,25,23,.06)}

/* 5. Small grey text: lifted to a readable contrast (4.5:1 or better). */
/* On the ivory panels used in both themes (home film strip, story cards, Journal and Earn filters). */
html body #cx-film .cx-head .cx-sec,html body #cx-film .cx-sec,html body #cx-ctr,html body .cx-lt-n,html body .cx-cap-k,html body .cx-pk-k,html body [data-cx-f]:not(.on),html body [data-earn-f]:not(.on){color:#5f5d59!important;opacity:1!important}
/* Light theme only. */
html[data-theme=light] .lib-cc,html[data-theme=light] .pz-cb>small,html[data-theme=light] .contact-topic small,html[data-theme=light] legend>i,html[data-theme=light] .ow-f span>i,html[data-theme=light] .sp-f span>i{color:#5f5d59!important;opacity:1!important}
html[data-theme=light] .lede{color:#4f565f!important;opacity:1!important}
/* Small uppercase labels in the light theme: full strength, product colour kept in a deeper shade (4.7:1 to 8:1 on ivory). */
html[data-theme=light] .eyebrow{opacity:1!important;filter:brightness(.7)}
/* Accent-coloured text on the light page. */
html[data-theme=light] [data-pt-start]{color:#7d5f27!important}
html[data-theme=light] .ow-price>b{color:#17734c!important}
html[data-theme=light] .crx-score>b,html[data-theme=light] .crx-write,html[data-theme=light] .crx-rv-p{color:#b8262d!important}
html[data-theme=light] .danfo b,html[data-theme=light] #app p>b[style*="9e882c"]{filter:brightness(.7)}
/* Dark theme form hints. */
html:not([data-theme=light]) #app legend>i,html:not([data-theme=light]) #app span>i:not([class]):not([aria-hidden]){color:#9a978f!important;opacity:1!important}
/* Footer theme switch (dark theme): the chosen option is dark text on ivory. */
html:not([data-theme=light]) button[data-m][aria-pressed="true"]{color:#111110!important}
/* Text on a product-coloured tab: near-black instead of grey. */
.eco-nl.on,.eco-nl[aria-current="page"],a.eco-nl[aria-current="page"]{color:#111110!important}

/* 6. Journal red buttons: a deeper red so white text reads (4.9:1). */
html.eco-journal main#app .btn.fill{background:#D13438!important;border-color:#D13438!important}
html.eco-journal #jr :is(.pl2-btn.f,.jr-pod-act a.fill){background:#D13438;border-color:#D13438}

/* 7. Links inside paragraphs are underlined, not told apart by colour alone. */
#app p a:not([class]),#app .lede a:not([class]),#app li>a:not([class]),#app .prose a:not([class]){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* 8. Keyboard focus: a visible ring on the header menu cards and every control that hid it. */
.ow-dd-i:focus-visible,.cx-major:focus-visible,.contact-topic:focus-visible,.xpc-chip:focus-visible,.eco-nl:focus-visible,#mob-sheet a:focus-visible,#mob-sheet button:focus-visible{outline:2px solid #c9a46a;outline-offset:3px;border-radius:12px}
.skip-link:focus{position:fixed;top:12px;left:12px;z-index:100000;padding:10px 16px;border-radius:999px;background:#f3efe7;color:#111110;clip:auto;width:auto;height:auto}

/* 10. Form labels: 13 px instead of 11 px. Inputs stay at 16 px so phones do not zoom. */
.field-label,.ck-field-label,.ow-l,.ho-l{font-size:13px;letter-spacing:.06em}
#app label>input[type=checkbox],#app label>input[type=radio],.ho-chk input{width:22px;height:22px;flex:0 0 22px}

/* 11. Susy and back-to-top step aside while you scroll down, and come back when you scroll up. */
@media (max-width:760px){
  .sy-fab,.to-top{transition:opacity .2s ease,transform .2s ease}
  html.ck-tuck .sy-fab,html.ck-tuck .to-top{opacity:0;transform:translateY(14px);pointer-events:none}
}

/* 12. Phone header on inner pages: a solid backing once the page scrolls, so titles never slide under the buttons. */
@media (max-width:760px){
  html.cx-scrolled:not(.cx-home) body #cx-chrome .cx-bar{background:linear-gradient(rgba(14,14,16,.96) 80%,rgba(14,14,16,0))!important}
  html[data-theme=light].cx-scrolled:not(.cx-home) body #cx-chrome .cx-bar{background:linear-gradient(rgba(244,245,247,.97) 80%,rgba(244,245,247,0))!important}
}

/* Laptop search icon: drawn as a line, not a filled dot. */
.mob-search svg,.mob-search svg circle,.mob-search svg path{fill:none}
.mob-search svg{stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* Product tabs that scroll sideways fade at the edge, so it is clear there is more. */
.eco-nav.v157-more{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}
.eco-nav.v157-more.v157-end{-webkit-mask-image:none;mask-image:none}
