/* APCCO Cosmetics V42 — scoped secondary-page hero & layout standardization.
   Deliberately does not target .cos35-hero or the cosmetics homepage. */
@media (min-width: 901px) {
  .sector.cosmetics.cos42-about .cos34-page-hero,
  .sector.cosmetics.cos42-ingredients .cos34-page-hero,
  .sector.cosmetics.cos42-solutions .cos34-page-hero {min-height:320px;padding:46px 5vw;align-items:center}
  .sector.cosmetics.cos42-applications .cos34-page-hero {min-height:320px;padding:44px 5vw;align-items:center}
  .sector.cosmetics.cos42-partners .cos34-page-hero,
  .sector.cosmetics.cos42-contact .cos34-page-hero {min-height:260px;padding:35px 5vw;align-items:center}
  .sector.cosmetics.cos42-clients .cos39-hero {min-height:260px}
  .sector.cosmetics.cos42-clients .cos39-hero-copy {padding:35px 5vw}
  .sector.cosmetics.cos42-clients .cos39-hero-count strong {font-size:clamp(72px,8vw,112px)}
  .sector.cosmetics.cos42-natural-oils .cos41-hero {min-height:450px}
  .sector.cosmetics.cos42-natural-oils .cos41-hero-copy {padding:35px clamp(28px,5.2vw,82px) 30px}
  .sector.cosmetics.cos42-natural-oils .cos41-hero h1 {font-size:clamp(37px,4vw,60px);margin:18px 0 15px}
  .sector.cosmetics.cos42-natural-oils .cos41-hero-foot {padding-top:20px}
  .sector.cosmetics.cos42-natural-oils .cos41-hero-photo {min-height:450px}
  .sector.cosmetics.cos42-seppic .cos35-detail-head,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-head {min-height:450px}
  .sector.cosmetics.cos42-seppic .cos35-detail-head > div:first-child,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-head > div:first-child {padding:36px 5vw}
  .sector.cosmetics.cos42-seppic .cos35-detail-visual,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-visual {min-height:450px}
  .sector.cosmetics.cos42-seppic .cos35-detail-head h1,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-head h1 {font-size:clamp(40px,4vw,61px);margin:14px 0}
  .sector.cosmetics.cos42-seppic .cos35-detail-head > div:first-child > p,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-head > div:first-child > p {line-height:1.65}
}
/* Shared secondary-page typography and content flow. */
.sector.cosmetics.cos42-about .cos34-page-hero h1,
.sector.cosmetics.cos42-ingredients .cos34-page-hero h1,
.sector.cosmetics.cos42-solutions .cos34-page-hero h1,
.sector.cosmetics.cos42-applications .cos34-page-hero h1,
.sector.cosmetics.cos42-partners .cos34-page-hero h1,
.sector.cosmetics.cos42-contact .cos34-page-hero h1 {font-size:clamp(34px,3.8vw,54px);margin:14px 0 12px}
.sector.cosmetics .cos34-page-hero p {line-height:1.65}
@media (max-width:900px) {
  .sector.cosmetics.cos42-natural-oils .cos41-hero,
  .sector.cosmetics.cos42-seppic .cos35-detail-head,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-head {min-height:0}
  .sector.cosmetics.cos42-natural-oils .cos41-hero-photo {min-height:270px}
  .sector.cosmetics.cos42-seppic .cos35-detail-visual,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-visual {min-height:270px}
  .sector.cosmetics.cos42-clients .cos39-hero {min-height:0}
}
@media (max-width:680px) {
  .sector.cosmetics .cos34-page-hero {padding:43px 6vw}
  .sector.cosmetics.cos42-natural-oils .cos41-hero-copy {padding:43px 6vw 30px}
  .sector.cosmetics.cos42-seppic .cos35-detail-head > div:first-child,
  .sector.cosmetics.cos42-sepiwhite-msh .cos35-detail-head > div:first-child {padding:43px 6vw}
}


/* V42.1 — editorial hero treatment and compact end-of-page CTAs.
   Scoped to Cosmetics inner pages only; approved Cosmetics Home remains untouched. */
@media (min-width: 901px) {
  .sector.cosmetics:is(.cos42-about,.cos42-ingredients,.cos42-solutions,.cos42-applications,.cos42-partners,.cos42-contact) .cos34-page-hero {
    display:flex;align-items:center;position:relative;isolation:isolate;
    min-height:290px;padding:36px 5vw;overflow:hidden;
    background:linear-gradient(105deg,#092d43 0%,#0c3e50 58%,#125e61 100%);
  }
  .sector.cosmetics:is(.cos42-about,.cos42-ingredients,.cos42-solutions,.cos42-applications,.cos42-partners,.cos42-contact) .cos34-page-hero::before {
    content:"";position:absolute;z-index:-1;inset:0 0 0 auto;width:43%;
    background-image:linear-gradient(90deg,#0c3d4e 0%,#0c3d4e16 32%,#092d4322 100%),url('/assets/apcco-cosmetics-v35-ingredients.webp');
    background-size:cover;background-position:center;filter:saturate(.9);
  }
  .sector.cosmetics:is(.cos42-about,.cos42-ingredients,.cos42-solutions,.cos42-applications,.cos42-partners,.cos42-contact) .cos34-page-hero > div {max-width:61%;}
  .sector.cosmetics:is(.cos42-about,.cos42-ingredients,.cos42-solutions,.cos42-applications,.cos42-partners,.cos42-contact) .cos34-page-hero h1 {font-size:clamp(33px,3.7vw,52px);line-height:1.1;margin:14px 0 12px}
  .sector.cosmetics:is(.cos42-about,.cos42-ingredients,.cos42-solutions,.cos42-applications,.cos42-partners,.cos42-contact) .cos34-page-hero p {max-width:650px;font-size:15px;line-height:1.55}
  .sector.cosmetics:is(.cos42-about,.cos42-ingredients,.cos42-solutions,.cos42-applications,.cos42-partners,.cos42-contact) .cos34-page-mark {display:none}
  .sector.cosmetics.cos42-about .cos34-page-hero::before,
  .sector.cosmetics.cos42-partners .cos34-page-hero::before {background-image:linear-gradient(90deg,#0c3d4e 0%,#0c3d4e16 32%,#092d4322 100%),url('/assets/apcco-cosmetics-v35-hero.webp')}
  .sector.cosmetics.cos42-contact .cos34-page-hero,
  .sector.cosmetics.cos42-partners .cos34-page-hero {min-height:260px}
  /* Bring the oversized bottom calls-to-action closer to their actual content. */
  .sector.cosmetics .cos34-cta {padding:35px 5vw;min-height:0;gap:24px}
  .sector.cosmetics .cos34-cta h2 {font-size:clamp(27px,2.7vw,38px);line-height:1.13;margin:9px 0 8px}
  .sector.cosmetics .cos34-cta p {line-height:1.45}
  .sector.cosmetics.cos42-natural-oils .cos41-cta {padding-top:36px;padding-bottom:36px;min-height:0}
  .sector.cosmetics.cos42-natural-oils .cos41-cta h2 {font-size:clamp(28px,3vw,40px);line-height:1.13;margin:10px 0}
  .sector.cosmetics.cos42-natural-oils .cos41-cta p {line-height:1.5}
  .sector.cosmetics.cos42-clients .cos39-cta {padding-top:35px;padding-bottom:35px}
}
@media (max-width: 900px) {
  .sector.cosmetics:is(.cos42-about,.cos42-ingredients,.cos42-solutions,.cos42-applications,.cos42-partners,.cos42-contact) .cos34-page-hero {
    background:linear-gradient(120deg,#0b3449bb,#0b3449f2),url('/assets/apcco-cosmetics-v35-ingredients.webp') center/cover;
    min-height:0;padding:48px 6vw;
  }
  .sector.cosmetics:is(.cos42-about,.cos42-partners) .cos34-page-hero {
    background:linear-gradient(120deg,#0b3449bb,#0b3449f2),url('/assets/apcco-cosmetics-v35-hero.webp') center/cover;
  }
  .sector.cosmetics .cos34-page-mark {display:none}
  .sector.cosmetics .cos34-cta {padding:37px 6vw;gap:18px}
  .sector.cosmetics .cos34-cta h2 {font-size:clamp(26px,6vw,36px);margin:10px 0}
  .sector.cosmetics.cos42-natural-oils .cos41-cta {padding-top:36px;padding-bottom:38px}
}

/* V42.2 — Cosmetics Navigation Typography */
@media (min-width:1100px) {
  .sector.cosmetics .sector-subnav nav a {
    font-size:14px !important;
    font-weight:700;
    letter-spacing:0;
  }
  .sector.cosmetics .sector-subnav nav {
    gap:12px;
  }
  .sector.cosmetics .sector-wordmark {
    font-size:16px;
    font-weight:800;
  }
}

/* V42.3 — Cosmetics Navigation */
@media (min-width:1100px) {
  body.sector.cosmetics .sector-subnav nav > a {
    font-size:15px !important;
    font-weight:700 !important;
    letter-spacing:0 !important;
  }
  body.sector.cosmetics .sector-subnav nav {
    gap:10px !important;
  }
}


/* APCCO V63 - COSMETICS ABOUT DROPDOWN */
body.sector.cosmetics .cos63-about {
  position:relative;
  flex:0 0 auto;
  z-index:100;
  font-size:14px;
  font-weight:700;
}
body.sector.cosmetics .cos63-about summary {
  display:block;
  list-style:none;
  cursor:pointer;
  padding:10px 3px;
  color:#173448;
  white-space:nowrap;
}
body.sector.cosmetics .cos63-about summary::-webkit-details-marker {
  display:none;
}
body.sector.cosmetics .cos63-about:not([open]) .cos63-about-panel {
  display:none!important;
}
body.sector.cosmetics .cos63-about-panel {
  position:absolute;
  top:100%;
  left:0;
  min-width:190px;
  background:#fff;
  border:1px solid #dce6e9;
  box-shadow:0 14px 35px #102e3d25;
  padding:8px;
  border-radius:7px;
  display:flex;
  flex-direction:column;
  z-index:200;
}
body.sector.cosmetics .cos63-about-panel a {
  display:block;
  padding:11px 13px;
  font-size:13px;
  text-decoration:none;
  color:#173448;
  white-space:nowrap;
}
body.sector.cosmetics .cos63-about-panel a:hover,
body.sector.cosmetics .cos63-about-panel a:focus-visible {
  background:#eef5f4;
}
@media(max-width:930px) {
  body.sector.cosmetics .cos63-about-panel {
    position:static;
    box-shadow:none;
    margin-top:5px;
  }
}

/* APCCO_V66_NAV_TABS */

body.sector.cosmetics .sector-subnav nav > a,
body.sector.cosmetics .sector-subnav nav > details.cos63-about > summary {
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:9px 12px!important;
    border-radius:7px;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.25;
    letter-spacing:0;
    text-decoration:none;
    white-space:nowrap;
    transition:background-color .18s,color .18s;
}

body.sector.cosmetics .sector-subnav nav > a:hover,
body.sector.cosmetics .sector-subnav nav > details.cos63-about > summary:hover {
    background:#eaf3f1!important;
    color:#087b7d!important;
}

body.sector.cosmetics .sector-subnav nav > a.selected,
body.sector.cosmetics .sector-subnav nav > a[aria-current="page"],
body.sector.cosmetics .sector-subnav nav > details.cos63-about[open] > summary {
    background:#dcefeb!important;
    color:#086f70!important;
    border-color:transparent!important;
}

body.sector.cosmetics .sector-subnav nav {
    gap:5px!important;
    align-items:center;
}

body.sector.cosmetics .sector-subnav nav > details.cos63-about > summary:focus-visible,
body.sector.cosmetics .sector-subnav nav > a:focus-visible {
    outline:2px solid #087f84;
    outline-offset:2px;
}

@media(max-width:930px) {
    body.sector.cosmetics .sector-subnav nav > a,
    body.sector.cosmetics .sector-subnav nav > details.cos63-about > summary {
        justify-content:flex-start;
        width:100%;
    }
}

/* APCCO_V67_PREMIUM_NAV */

body.sector.cosmetics .sector-subnav {
    background:#f8fafb;
    border-bottom:1px solid #e4ecee;
}

body.sector.cosmetics .sector-subnav nav {
    gap:4px!important;
    align-items:center;
}

body.sector.cosmetics .sector-subnav nav > a,
body.sector.cosmetics .sector-subnav nav
> details.cos63-about > summary {
    position:relative;
    min-height:40px;
    padding:10px 13px!important;
    border:1px solid transparent!important;
    border-radius:7px!important;
    background:transparent!important;
    color:#274653!important;
    font-size:13px!important;
    font-weight:650!important;
    box-shadow:none!important;
    transition:background .2s ease,
               color .2s ease,
               box-shadow .2s ease;
}

body.sector.cosmetics .sector-subnav nav > a:hover,
body.sector.cosmetics .sector-subnav nav
> details.cos63-about > summary:hover {
    background:#e8f1f0!important;
    color:#087b7d!important;
}

body.sector.cosmetics .sector-subnav nav > a.selected,
body.sector.cosmetics .sector-subnav nav
> a[aria-current="page"],
body.sector.cosmetics .sector-subnav nav
> details.cos63-about[open] > summary {
    background:#123e4c!important;
    color:#fff!important;
    box-shadow:0 3px 10px #123e4c20!important;
}

body.sector.cosmetics .sector-subnav nav > a.selected::after,
body.sector.cosmetics .sector-subnav nav
> a[aria-current="page"]::after,
body.sector.cosmetics .sector-subnav nav
> details.cos63-about[open] > summary::after {
    content:"";
    position:absolute;
    bottom:3px;
    left:25%;
    width:50%;
    height:2px;
    background:#58d4c3;
    border-radius:5px;
}

@media(max-width:930px) {
    body.sector.cosmetics .sector-subnav nav > a,
    body.sector.cosmetics .sector-subnav nav
    > details.cos63-about > summary {
        min-height:43px;
        justify-content:flex-start;
    }
}
