/* consumer.css - two profile themes (scene1) */
body[data-profile="oil"]{--paper:#0E1013;--ink:#F4EFE6;--muted:#B7ADA0;--line:#2A2E34;--accent:#E08A3C;--accent-ink:#0E1013;--cs-surface:#141922;--cs-surface-2:#1C232D;--cs-productpaper:#F4F3EF;}
body[data-profile="skin"]{--paper:#F4FAF9;--ink:#12211E;--muted:#5C7671;--line:#D2E5E1;--accent:#2E5850;--accent-ink:#F4FAF9;--cs-surface:#EAF4F2;--cs-surface-2:#DCEFEC;--cs-productpaper:#F4F3EF;}

body[data-profile]{background:var(--paper);color:var(--ink);}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ---------- shared market-switch: two equal entry columns ---------- */
body[data-profile] .market-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 14px;background:var(--cs-surface);border-bottom:1px solid var(--line);}
body[data-profile] .market-switch .market-link{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:44px;padding:8px 12px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:10px;background:var(--paper);overflow-wrap:anywhere;}
body[data-profile] .market-switch .market-link .market-entry-title{font-size:16px;font-weight:700;line-height:1.15;color:var(--ink);}
body[data-profile] .market-switch .market-link .market-entry-sub{font-size:14px;line-height:1.2;color:var(--muted);}
body[data-profile] .market-switch .market-link[aria-current="page"]{border-color:var(--accent);background:var(--cs-surface-2);box-shadow:inset 0 0 0 2px var(--accent);}
body[data-profile] .market-switch .market-link[aria-current="page"] .market-entry-title{color:var(--accent);}
body[data-profile] .market-switch .market-link[aria-current="page"] .market-entry-sub{color:var(--ink);}

/* ---------- header / chrome ---------- */
body[data-profile] .header{background:var(--cs-surface);border-color:var(--line);}
body[data-profile] .header a,body[data-profile] .header-nav a,body[data-profile] .wordmark,body[data-profile] .lang-control select{color:var(--ink);}
body[data-profile] .lang-control select{background:var(--paper);border:1px solid var(--line);min-height:44px;}
body[data-profile] .market-link[aria-current="page"]{color:var(--accent);border-color:var(--accent);font-weight:700;}

/* ---------- generic section theming ---------- */
body[data-profile] .applications,body[data-profile] .finish-studio,body[data-profile] .contact,body[data-profile] .person,body[data-profile] footer{background:var(--paper);color:var(--ink);}
body[data-profile] .story-topline,body[data-profile] .story-bottom,body[data-profile] .scene-fact,body[data-profile] .tank-callout,body[data-profile] .dose-callout{color:var(--ink);border-color:var(--line);}
body[data-profile] .story-chapters a{color:var(--muted);}
body[data-profile] .story-chapters a[aria-current="step"]{color:var(--accent);}

/* --- product story --- */
body[data-profile] .product-story{background:var(--paper);color:var(--ink);}
body[data-profile] .story-sticky{background:var(--cs-surface);border-color:var(--line);color:var(--ink);}
body[data-profile] .product-story:not(.story-motion) .story-bottom{background:var(--cs-surface);border:1px solid var(--line);color:var(--ink);}
body[data-profile] .story-bottom{background:var(--cs-surface);border:1px solid var(--line);color:var(--ink);}
body[data-profile] .story-bottom p,body[data-profile] .story-bottom a{color:var(--ink);}
body[data-profile] .story-product-view{background:var(--cs-productpaper);border-radius:12px;}
body[data-profile] .story-product-view img{background:transparent;mix-blend-mode:multiply;}
body[data-profile] .story-product-view .scene-fact{color:#1c1c1a;}
body[data-profile] .brand-visual{background:var(--cs-productpaper);border-radius:10px;}
body[data-profile] .brand-visual .brand-visual-label{color:#1c1c1a;}

/* ---------- applications ---------- */
body[data-profile] .applications h2,body[data-profile] .applications h3{color:var(--ink);}
body[data-profile] .applications p,body[data-profile] .applications li{color:var(--ink);}
body[data-profile] .applications .integration-link,body[data-profile] .applications a{color:var(--accent);text-decoration:underline;}
body[data-profile] .engineering-links a{color:var(--accent);}
body[data-profile] .story-topline .story-cta,body[data-profile] .story-topline a{color:var(--accent);}

/* ---------- finish ---------- */
body[data-profile] .finish-choice{color:var(--ink);border-color:var(--line);min-height:44px;font-size:14px;background:var(--cs-surface);}
body[data-profile] .finish-choice.selected{border-color:var(--accent);color:var(--accent);}

/* ---------- contact / sample-form ---------- */
body[data-profile] .contact-heading h2,body[data-profile] .contact-right p,body[data-profile] .sample-note,body[data-profile] .person{color:var(--ink);}
body[data-profile="skin"] .contact-heading h2{color:var(--accent);}
body[data-profile] .contact .sample-form{background:var(--cs-surface);border:1px solid var(--line);border-radius:12px;padding:20px;color:var(--ink);}
body[data-profile] .contact .sample-form h2{color:var(--ink);font-size:24px;line-height:1.2;margin:0 0 14px;}
body[data-profile] .contact .sample-form .form-row label{color:var(--ink);font-size:14px;}
body[data-profile] .contact .sample-form input,
body[data-profile] .contact .sample-form select,
body[data-profile] .contact .sample-form textarea{background:var(--paper);color:var(--ink);border:1px solid var(--line);font-size:16px;min-height:44px;}
body[data-profile] .contact .sample-form input::placeholder{color:var(--muted);}
body[data-profile] .contact .sample-form button[type="submit"]{background:var(--accent);color:var(--accent-ink);border:none;min-height:44px;padding:0 20px;font-size:16px;border-radius:8px;font-weight:600;}
body[data-profile] .contact .sample-form .form-actions button,
body[data-profile] .contact .sample-form .button{background:var(--accent);color:var(--accent-ink);border:none;min-height:44px;padding:0 20px;font-size:16px;border-radius:8px;font-weight:600;}
body[data-profile] .sample-fallback,body[data-profile] .sample-fallback p,body[data-profile] #sample-status{color:var(--ink);}
body[data-profile] .email-hint{color:var(--muted);}
body[data-profile] a:focus-visible,body[data-profile] button:focus-visible,body[data-profile] input:focus-visible,body[data-profile] select:focus-visible,body[data-profile] textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px;}

/* ---------- technical / detail pages ---------- */
body[data-profile] .technical-section .technical-content{background:#F4F3EF;color:#1c1c1a;}
body[data-profile] .technical-section .technical-content p,
body[data-profile] .technical-section .technical-content li,
body[data-profile] .technical-section .technical-content dd,
body[data-profile] .technical-section .technical-content dt{color:#1c1c1a;}
body[data-profile] .technical-section .spec-grid{background:#F4F3EF;color:#1c1c1a;}
body[data-profile] .detail-page{background:var(--paper);color:var(--ink);}
body[data-profile] .detail-nav{background:var(--cs-surface);border-color:var(--line);}
body[data-profile] .detail-nav a{color:var(--ink);}
body[data-profile] .evidence-section{background:var(--cs-surface);color:var(--ink);}
body[data-profile] .evidence-section dt,body[data-profile] .evidence-section dd,body[data-profile] .evidence-section p,body[data-profile] .evidence-section a{color:var(--ink);}
body[data-profile] .evidence-section .evidence-heading span{color:var(--muted);}
body[data-profile] .evidence-foot,body[data-profile] .evidence-foot a,body[data-profile] .evidence-source,body[data-profile] .evidence-caption{color:var(--muted);}
body[data-profile] .engineering-test{background:var(--cs-surface);color:var(--ink);}
body[data-profile] .engineering-test p,body[data-profile] .engineering-test a,body[data-profile] .engineering-principle p{color:var(--ink);}
body[data-profile] .engineering-test .tech-eyebrow{color:var(--muted);}
body[data-profile] .test-action .button{background:var(--accent);color:var(--accent-ink);border:none;min-height:44px;padding:0 20px;font-size:16px;border-radius:8px;font-weight:600;}
body[data-profile] .next-details p,body[data-profile] .detail-footer p{color:var(--muted);}
body[data-profile] .mechanism-view{background:#EDEAE2;}
body[data-profile] .mechanism-view img{mix-blend-mode:multiply;}
body[data-profile] .mechanism-ordinal{color:#3c3a34;}
body[data-profile] .mechanism-controls button{color:var(--ink);border-color:var(--line);background:var(--cs-surface);}
body[data-profile] .mechanism-controls button[aria-pressed="true"],body[data-profile] .mechanism-controls button.active{color:var(--accent);border-color:var(--accent);}
body[data-profile] .mechanism-caption p{color:var(--muted);}

/* ---------- consumer hero ---------- */
.consumer-story{display:block;padding:0;}
.consumer-story .cs-inner{max-width:1180px;margin:0 auto;padding:20px 16px 48px;}
.cs-h1{font-size:clamp(26px,5.4vw,60px);line-height:1.03;letter-spacing:-0.02em;margin:0 0 12px;color:var(--ink);}
.consumer-story-skin .cs-h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:0;}
.cs-intro{font-size:16px;color:var(--muted);max-width:44ch;margin:0 0 16px;}
.cs-cta{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;background:var(--accent);color:var(--accent-ink);text-decoration:none;border-radius:8px;font-weight:600;font-size:16px;}

.cs-stage{display:grid;gap:14px;margin:20px 0 0;}
.cs-stage-dark{background:var(--cs-surface);border-radius:16px;padding:16px;grid-template-columns:1.25fr .8fr;align-items:center;}
.cs-lightstage{background:#EDEAE2;border-radius:12px;padding:14px;display:grid;place-items:center;min-height:200px;}
.cs-pair{position:relative;display:flex;align-items:flex-end;gap:10px;justify-content:center;flex-wrap:nowrap;}
.cs-pair img{width:auto;height:auto;transition:opacity .25s ease, transform .25s ease;}
.cs-pair .cs-body{max-height:180px;}
.cs-pair .cs-tank{max-height:150px;}
.cs-pair[data-cs-state="0"] .cs-tank{opacity:1;}
.cs-pair[data-cs-state="1"] .cs-tank{opacity:.35;transform:translateY(6px);}
.cs-pair[data-cs-state="2"] .cs-tank{opacity:1;transform:translateY(-4px);}
.cs-ambient{margin:0;display:grid;gap:6px;}
.cs-ambient img{width:100%;height:auto;border-radius:10px;display:block;}
.cs-ambient figcaption{font-size:14px;color:var(--muted);}

.cs-stage-light{grid-template-columns:1.4fr .6fr;align-items:center;background:var(--cs-surface);border-radius:16px;padding:14px;}
.cs-macro{position:relative;margin:0;}
.cs-imageplane{position:relative;overflow:hidden;border-radius:12px;aspect-ratio:16/9;background:#EDEAE2;}
.cs-imageplane img{width:100%;height:100%;object-fit:cover;display:block;}
.cs-macro figcaption{font-size:14px;color:var(--muted);margin-top:6px;}
.cs-macro .cs-touch{position:absolute;width:26px;height:26px;border-radius:50%;border:2px dashed var(--accent);background:transparent;pointer-events:none;opacity:0;top:48%;left:50%;transform:translate(-50%,-50%);transition:opacity .25s ease, background .25s ease;}
.cs-touch[data-cs-state="2"]{opacity:1;background:color-mix(in srgb,var(--accent) 45%,transparent);border-style:solid;}

.cs-spot{position:relative;display:grid;place-items:center;padding:10px;}
.cs-spot .cs-cream{max-height:180px;width:auto;height:auto;transition:transform .25s ease;}
.cs-spot[data-cs-state="0"] .cs-cream{transform:none;}
.cs-spot[data-cs-state="1"] .cs-cream{transform:translateY(2px) scale(1.01);}
.cs-spot[data-cs-state="2"] .cs-cream{transform:translateY(-2px);}

.cs-steps{margin:16px 0 0;display:grid;gap:12px;grid-template-columns:1fr;}
.cs-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.cs-step{min-height:60px;padding:6px 8px;font-size:14px;line-height:1.15;border:1px solid var(--line);background:var(--cs-surface);color:var(--ink);border-radius:8px;cursor:pointer;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;overflow-wrap:anywhere;}
.cs-step[aria-selected="true"]{border-color:var(--accent);color:var(--accent);font-weight:700;}
.cs-step-n{font-size:12px;opacity:.7;}
.cs-panel{font-size:16px;color:var(--ink);}
.cs-panel[hidden]{display:none;}
.cs-status{margin:0;}

@media(min-width:720px){
 .consumer-story-oil .cs-inner{display:grid;grid-template-columns:40% 1fr;column-gap:22px;align-items:start;}
 .consumer-story-oil .cs-hero{grid-column:1;grid-row:1;padding-top:8px;}
 .consumer-story-oil .cs-stage{grid-column:2;grid-row:1;margin-top:0;}
 .consumer-story-oil .cs-steps{grid-column:2;grid-row:2;}
 .consumer-story-skin .cs-inner{grid-template-columns:1fr;max-width:1180px;}
 .consumer-story-skin .cs-stage-light{border-radius:20px;padding:22px;grid-template-columns:1.4fr .6fr;}
 .consumer-story-skin .cs-stage{margin-top:22px;}
 .cs-stage-dark{grid-template-columns:1.6fr 1fr;}
 .cs-pair .cs-body{max-height:220px;}
 .cs-pair .cs-tank{max-height:200px;}
 .cs-spot .cs-cream{max-height:220px;}
}

@media(prefers-reduced-motion:reduce){
 .cs-pair img,.cs-spot .cs-cream,.cs-macro .cs-touch{transition:none;}
}

@media(max-width:719px){
 .consumer-story .cs-inner{padding:16px 12px 40px;}
 .cs-stage-dark{grid-template-columns:1.25fr .8fr;}
 .cs-stage-light{grid-template-columns:1.4fr .6fr;}
 .cs-lightstage{min-height:170px;padding:10px;}
 .cs-pair{gap:6px;}
 .cs-pair .cs-body{max-height:170px;}
 .cs-pair .cs-tank{max-height:140px;}
 .cs-spot .cs-cream{max-height:160px;}
}

@media(max-width:399px){
 .cs-pair .cs-body{max-height:160px;}
 .cs-pair .cs-tank{max-height:132px;}
 .cs-spot .cs-cream{max-height:150px;}
}

/* FINAL_REVIEW_VISUAL_CORRECTION */
/* Entrance cards: each carries its own permanent identity on BOTH profiles. */
body[data-profile] .market-switch .market-link{
  padding:5%;
  justify-content:center;
  align-items:flex-start;
  position:relative;
}
body[data-profile] .market-switch .market-link .market-entry-title{
  text-transform:none;
  font-weight:600;
  font-size:16px;
  line-height:1.2;
}
body[data-profile] .market-switch .market-link .market-entry-sub{
  text-transform:none;
  font-weight:400;
  font-size:13px;
  line-height:1.35;
}
body[data-profile] .market-switch .market-link::after{
  content:"\2192";
  position:absolute;
  right:5%;
  top:50%;
  transform:translateY(-50%);
  font-size:15px;
  opacity:.7;
  pointer-events:none;
}
body[data-profile] .market-switch .market-link[aria-current="page"]::after{
  opacity:1;
}
/* FIRST oil link: always dark graphite, amber title, pale warm subtitle. */
body[data-profile] .market-switch .market-link:first-child,
body[data-profile] a.market-link[data-entry="oil"],
body[data-profile] .market-link.market-link-oil{
  background:#161a1d;
  border-color:#161a1d;
  color:#e5a45d;
}
body[data-profile] .market-switch .market-link:first-child .market-entry-title,
body[data-profile] a.market-link[data-entry="oil"] .market-entry-title,
body[data-profile] .market-link.market-link-oil .market-entry-title{
  color:#e5a45d;
}
body[data-profile] .market-switch .market-link:first-child .market-entry-sub,
body[data-profile] a.market-link[data-entry="oil"] .market-entry-sub,
body[data-profile] .market-link.market-link-oil .market-entry-sub{
  color:#e8cfae;
}
body[data-profile] .market-switch .market-link:first-child[aria-current="page"],
body[data-profile] a.market-link[data-entry="oil"][aria-current="page"],
body[data-profile] .market-link.market-link-oil[aria-current="page"]{
  border-color:#e5a45d;
  box-shadow:none;
  outline:2px solid #e5a45d;
  outline-offset:-2px;
}
/* SECOND skin link: always cool light, deep jade title, dark green subtitle. */
body[data-profile] .market-switch .market-link:last-child,
body[data-profile] a.market-link[data-entry="skin"],
body[data-profile] .market-link.market-link-skin{
  background:#e2f2ef;
  border-color:#b8dbd5;
  color:#16675a;
}
body[data-profile] .market-switch .market-link:last-child .market-entry-title,
body[data-profile] a.market-link[data-entry="skin"] .market-entry-title,
body[data-profile] .market-link.market-link-skin .market-entry-title{
  color:#16675a;
}
body[data-profile] .market-switch .market-link:last-child .market-entry-sub,
body[data-profile] a.market-link[data-entry="skin"] .market-entry-sub,
body[data-profile] .market-link.market-link-skin .market-entry-sub{
  color:#274f46;
}
body[data-profile] .market-switch .market-link:last-child[aria-current="page"],
body[data-profile] a.market-link[data-entry="skin"][aria-current="page"],
body[data-profile] .market-link.market-link-skin[aria-current="page"]{
  border-color:#16675a;
  box-shadow:none;
  outline:2px solid #16675a;
  outline-offset:-2px;
}
body[data-profile] .market-switch .market-link[aria-current="page"]{
  box-shadow:none;
}

/* Skincare cream product: enlarge on desktop, keep mobile contained. */
@media(min-width:720px){
  .cs-spot .cs-cream{max-height:315px;}
  .cs-spot{min-height:340px;}
}
.cs-spot .cs-cream{
  width:auto;
  height:auto;
  max-width:100%;
  object-fit:contain;
}
@media(max-width:719px){
  .cs-spot .cs-cream{max-height:170px;}
  .cs-spot{min-height:190px;padding:6px;}
}

/* Oil stage: body 260 / tank 140 desktop, mobile body 160 / tank 110. */
.cs-lightstage img{max-width:100%;object-fit:contain;}
.cs-pair .cs-body{max-height:260px;}
.cs-pair .cs-tank{max-height:140px;}
@media(min-width:720px){
  .cs-pair .cs-body{max-height:260px;}
  .cs-pair .cs-tank{max-height:140px;}
}
@media(max-width:719px){
  .cs-pair .cs-body{max-height:160px;}
  .cs-pair .cs-tank{max-height:110px;}
}
@media(max-width:399px){
  .cs-pair .cs-body{max-height:150px;}
  .cs-pair .cs-tank{max-height:104px;}
}
/* Remove opaque white box around reservoir asset on intentional light stage. */
.cs-lightstage img,
.cs-pair .cs-body,
.cs-pair .cs-tank{
  mix-blend-mode:multiply;
  background:transparent;
}

/* Skin hero image: cap height so first interaction sits near the fold. */
.consumer-story-skin .cs-imageplane{aspect-ratio:16/9;max-height:min(52vh,460px);}
@media(max-width:719px){
  .consumer-story-skin .cs-imageplane{max-height:none;aspect-ratio:16/9;}
}

/* Consumer H1 sizing: keep desktop comfortable, raise mobile range. */
.cs-h1{font-size:clamp(32px,5.4vw,56px);}
@media(min-width:1080px){
  .cs-h1{font-size:56px;}
}
@media(max-width:719px){
  .cs-h1{font-size:clamp(32px,8.6vw,38px);}
}
.cs-intro,.cs-panel,.cs-step,.market-entry-sub,.cs-ambient figcaption,
.cs-macro figcaption{overflow-wrap:anywhere;word-break:break-word;hyphens:auto;}

/* Story canvas: original product-story gets LOCAL light paper / dark ink. */
.product-story{
  background:#f4f3ef;
  color:#242620;
  --story-ink:#242620;
  --story-muted:#5b5c52;
  --story-line:#d8dacf;
  --story-accent:#945117;
  --skin-ink:#12463c;
}
.product-story .story-sticky{
  background:#f4f3ef;
  color:#242620;
  border-color:#d8dacf;
}
.product-story .story-scene{
  background:#f4f3ef;
  color:#242620;
}
.product-story .scene-heading,
.product-story .scene-heading h1,
.product-story .scene-heading h2{
  color:#242620;
}
.product-story .story-topline,
.product-story .story-topline>span,
.product-story .story-bottom,
.product-story .story-credit,
.product-story .scroll-cue,
.product-story .chapter-count{
  color:#5b5c52;
}
.product-story .story-topline>a,
.product-story .story-chapters a{
  color:#4a4b43;
}
.product-story .story-topline>a{
  background:#945117;
  color:#fbf7f0;
  border-bottom-color:transparent;
}
.product-story .story-topline>a:hover{
  background:#7a4313;
  color:#fbf7f0;
}
.product-story .story-chapters a[aria-current],
.product-story .story-chapters [aria-current]{
  color:#242620;
}
.product-story .story-chapters a[aria-current] .chapter-line,
.product-story .story-chapters [aria-current] .chapter-line{
  background:#945117;
}
.product-story .story-chapters .chapter-line{
  background:#c7c8c0;
}
.product-story .scene-fact,
.product-story .dose-label,
.product-story .dose-callout>p,
.product-story .tank-callout p{
  color:#5b5c52;
}
.product-story .dose-number,
.product-story .tank-callout strong,
.product-story .tank-callout strong span{
  color:#242620;
}
.product-story .story-product-view{
  mix-blend-mode:normal;
  background:#f4f3ef;
}
.product-story .story-product-view img{
  mix-blend-mode:multiply;
  background:transparent;
}
.product-story .story-product-view .scene-fact{
  color:#5b5c52;
}
/* Oil accent inside the light story canvas goes to a readable darker amber. */
body[data-profile="oil"] .product-story .story-topline>a,
body[data-profile="oil"] .product-story .story-chapters [aria-current] .chapter-line{
  background:#945117;
  color:#fbf7f0;
}
body[data-profile="oil"] .product-story .story-chapters [aria-current]{
  color:#242620;
}
body[data-profile="skin"] .product-story{
  --story-accent:#12463c;
}
body[data-profile="skin"] .product-story .story-topline>a,
body[data-profile="skin"] .product-story .story-chapters [aria-current] .chapter-line{
  background:#12463c;
  color:#f4faf9;
}
body[data-profile="skin"] .product-story .story-chapters [aria-current]{
  color:#12463c;
}
/* Non-story page keeps its dark oil theme. */
body[data-profile="oil"]:not(:has(.product-story)) .applications,
body[data-profile="oil"] .applications{background:var(--paper);}

/* Engineering links: correct selector, real class is .engineering-link. */
body[data-profile] .engineering-link,
body[data-profile] .engineering-links a.engineering-link{
  color:#945117;
  border-bottom-color:#945117;
}
body[data-profile="skin"] .engineering-link{
  color:#12463c;
  border-bottom-color:#12463c;
}
/* Tech mechanism controls use aria-selected=true and must show active accent. */
body[data-profile] .mechanism-controls button[aria-selected="true"]{
  border-bottom-color:#945117;
  color:#945117;
  border-bottom-width:2px;
}
body[data-profile="skin"] .mechanism-controls button[aria-selected="true"]{
  border-bottom-color:#12463c;
  color:#12463c;
}
body[data-profile] .mechanism-controls button[aria-pressed="true"]{
  border-bottom-color:transparent;
  color:var(--muted);
}
/* Tech eyebrow on dark hero: raise contrast to muted var. */
.engineering-test .tech-eyebrow,
.engineering-hero .tech-eyebrow,
body[data-profile] .technical-section .tech-eyebrow{
  color:var(--muted);
}
body[data-profile] .engineering-test,
body[data-profile] .engineering-test p,
body[data-profile] .engineering-test a,
body[data-profile] .engineering-principle p{
  color:var(--ink);
}
body[data-profile] .engineering-test .tech-eyebrow{
  color:var(--muted);
}
/* Detail nav active keeps accent. */
body[data-profile] .detail-nav [aria-current],
body[data-profile] .detail-nav a[aria-current="page"]{
  color:var(--accent);
  border-color:var(--accent);
}

/* Contact sample-form hints + status: win over old hardcoded dark colors. */
body[data-profile] .contact .sample-form .email-hint,
body[data-profile] .contact .sample-form p.email-hint,
body[data-profile="oil"] .contact .sample-form .email-hint,
body[data-profile="skin"] .contact .sample-form .email-hint{
  color:var(--muted);
}
body[data-profile] .contact .sample-form .sample-fallback p#sample-status,
body[data-profile] .contact .sample-form p#sample-status,
body[data-profile="oil"] .contact .sample-form p#sample-status,
body[data-profile="skin"] .contact .sample-form p#sample-status{
  color:var(--ink);
}
body[data-profile] .contact .sample-form .sample-fallback,
body[data-profile] .contact .sample-form .sample-fallback p{
  color:var(--ink);
}
body[data-profile] .contact .sample-form .email-hint a{
  color:var(--accent);
}

/* Story topline link on light canvas: accessible accent background + ink. */
.product-story:not(.story-motion) .story-topline>a{
  background:#945117;
  color:#fbf7f0;
  border:1px solid #945117;
}
body[data-profile="skin"] .product-story:not(.story-motion) .story-topline>a{
  background:#12463c;
  color:#f4faf9;
  border-color:#12463c;
}
body[data-profile] .story-topline>a:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}
/* Balanced consumer stage, no unsafe excess transforms. */
.cs-pair img,.cs-spot .cs-cream{
  transform:none;
}
.cs-pair[data-cs-state="1"] .cs-tank{opacity:.4;transform:none;}
.cs-pair[data-cs-state="2"] .cs-tank{opacity:1;transform:none;}
.cs-spot[data-cs-state="1"] .cs-cream{transform:none;}
.cs-spot[data-cs-state="2"] .cs-cream{transform:none;}

body[data-profile] .market-switch {padding:12px 5%;gap:16px;}
body[data-profile] .market-switch .market-link {padding:14px 34px 14px 20px;min-height:72px;}
@media (max-width:719px) { body[data-profile] .market-switch {padding:10px 14px;gap:10px;} body[data-profile] .market-switch .market-link {padding:12px 26px 12px 12px;min-height:80px;} }
body[data-profile] .market-switch .market-link {text-transform:none;}
body[data-profile] .market-switch .market-link .market-title,
body[data-profile] .market-switch .market-link .market-sub {text-transform:none;}

body[data-profile] .product-story {--paper:#f4f3ef;--ink:#242620;--muted:#5b5c52;--line:#d8dacf;--accent:#945117;--accent-ink:#fbf7f0;--cs-surface:#f4f3ef;--cs-surface-2:#ebece5;background:var(--paper);color:var(--ink);}
body[data-profile="oil"] .product-story {--accent:#945117;}
body[data-profile="skin"] .product-story {--accent:#12463c;--accent-ink:#fbf7f0;}
body[data-profile] .product-story .story-sticky,body[data-profile] .product-story .story-scene,body[data-profile] .product-story .story-bottom {background:var(--paper);color:var(--ink);}
body[data-profile] .product-story .story-topline span {color:var(--muted);}
body[data-profile] .product-story .story-chapter {color:var(--ink);}
body[data-profile] .product-story .story-chapter span {color:var(--muted);}
body[data-profile] .product-story .story-callout {color:var(--ink);border-color:var(--line);}
body[data-profile] .product-story .story-product-view {mix-blend-mode:normal;}
body[data-profile] .product-story .story-product-view img {mix-blend-mode:multiply;}

body[data-profile] .engineering-link {color:var(--accent);border-color:var(--accent);}
body[data-profile] .mechanism-controls button[aria-selected="true"] {color:var(--accent);border-color:var(--accent);}
body[data-profile="oil"] .engineering-link {color:var(--accent);border-color:var(--accent);}
body[data-profile="oil"] .mechanism-controls button[aria-selected="true"] {color:#E08A3C;border-color:#E08A3C;}

body[data-profile] .contact .sample-form button[data-copy-control="sample-copy"] {background:transparent;color:var(--ink);border:1px solid var(--line);}
body[data-profile] .contact .sample-form a.sample-mailto {color:var(--accent);}

/* DESKTOP_SKIN_FOLD_REVIEW */
@media(min-width:1024px){.consumer-story-skin .cs-imageplane{height:320px;max-height:320px;aspect-ratio:auto;}.consumer-story-skin .cs-imageplane img{object-fit:cover;object-position:50% 50%;}}
/* ENTRY_MOBILE_REVIEW */
body[data-profile] .market-switch{align-items:stretch;}
body[data-profile] .market-switch .market-entry-sub{letter-spacing:0;hyphens:none;word-break:normal;}


/* integration subpage mobile compaction - subpage specific, desktop unchanged */
@media (max-width: 700px) {
  body[data-route-tail="integration"] .header {
    padding: 16px 7%;
    height: 80px;
    min-height: 80px;
    grid-template-rows: 1fr;
    row-gap: 0;
  }
  body[data-route-tail="integration"] .header .detail-back {
    display: none;
  }
  body[data-route-tail="integration"] .header .wordmark,
  body[data-route-tail="integration"] .header .lang-control {
    min-height: 44px;
  }
  body[data-route-tail="integration"] .market-switch .market-link {
    min-height: 44px;
  }
  body[data-route-tail="integration"] .integration-page .integration-hero {
    padding: 32px 7% 36px;
  }
  body[data-route-tail="integration"] .integration-page .integration-heading h1 {
    font-size: clamp(34px, 8.5vw, 44px);
    line-height: 1.08;
    margin: 16px 0;
  }
  body[data-route-tail="integration"] .integration-page .integration-intro {
    font-size: 16px;
    line-height: 1.6;
  }
  body[data-route-tail="integration"] .integration-page .integration-spec {
    padding: 0 7% 48px;
  }
  body[data-route-tail="integration"] .integration-spec .evidence-heading {
    display: block;
    margin-bottom: 20px;
  }
  body[data-route-tail="integration"] .integration-spec .evidence-heading h2 {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .16em;
    padding-top: 24px;
    margin: 0;
  }
  body[data-route-tail="integration"] .integration-spec .evidence-facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body[data-route-tail="integration"] .integration-spec .evidence-facts div {
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  body[data-route-tail="integration"] .integration-spec .evidence-facts dd {
    font-size: 26px;
    overflow-wrap: anywhere;
  }
  body[data-route-tail="integration"] .integration-page .integration-checks,
  body[data-route-tail="integration"] .integration-page .integration-cta {
    padding: 48px 7%;
  }
}
