/* SelfStudy editorial layer — intentionally loaded last to preserve legacy behavior. */
:root{
  --editorial-bg:#f8f6f2;
  --editorial-paper:#fffefc;
  --editorial-ink:#172238;
  --editorial-muted:#637086;
  --editorial-coral:#e56852;
  --editorial-coral-deep:#c94f3d;
  --editorial-amber:#f2ad5f;
  --editorial-mint:#dceee8;
  --editorial-lavender:#e8e5f5;
  --editorial-sky:#e4eff7;
  --editorial-line:#dde2eb;
  --editorial-radius:28px;
  --editorial-shadow:0 22px 56px rgba(38,48,73,.10);
  --v5-rail:236px;
}

html body.onae-themed{
  background:
    radial-gradient(circle at 9% 5%,rgba(248,210,190,.34),transparent 28rem),
    radial-gradient(circle at 90% 18%,rgba(218,226,247,.48),transparent 30rem),
    linear-gradient(180deg,#fffdfa 0,var(--editorial-bg) 42rem,#f8f9fb 100%)!important;
  color:var(--editorial-ink)!important;
}
html body.onae-themed header.app{
  background:rgba(255,254,252,.96)!important;
  border-color:rgba(214,220,230,.86)!important;
  box-shadow:0 10px 32px rgba(31,42,64,.055)!important;
}
html body.onae-themed .hd-inner{min-height:72px!important;padding:0 30px!important;overflow:visible}
html body.onae-themed .hd-actions{gap:8px!important;overflow-x:auto;scrollbar-width:none}
html body.onae-themed .hd-actions::-webkit-scrollbar{display:none}
html body.onae-themed .hd-actions button,
html body.onae-themed .v5-eduverse-menu summary{
  min-height:44px!important;padding:10px 14px!important;border-radius:14px!important;
  font-size:13px!important;font-weight:760!important;line-height:1!important;white-space:nowrap!important;
}

.v5-rail{background:rgba(255,254,252,.98);border-color:var(--editorial-line);box-shadow:10px 0 34px rgba(39,47,68,.045)}
.v5-brand{height:72px;padding:0 24px;border-color:var(--editorial-line);font-size:20px;letter-spacing:-.035em}
.v5-brand small{color:var(--editorial-coral-deep);letter-spacing:.09em}
.v5-nav{gap:7px;padding:22px 14px}
.v5-nav button{min-height:48px;grid-template-columns:30px 1fr;gap:10px;padding:9px 12px;border-radius:15px;color:#536076;font-size:14px;transition:background-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease}
.v5-nav button:hover,.v5-nav button:focus-visible{background:#fbf2ec;color:var(--editorial-ink)}
.v5-nav button.is-active{background:linear-gradient(110deg,#fbe4d8,#fff3e6);color:#9e3f32;box-shadow:inset 0 0 0 1px rgba(219,111,84,.16)}
.v5-no{width:26px;height:26px;border-color:#d8dee9;border-radius:9px;background:#fff;color:#6f7b8e}
.v5-nav button.is-active .v5-no{border-color:var(--editorial-coral);background:var(--editorial-coral);color:#fff}
.v5-rail-note{margin:18px 14px;padding:18px;border-color:#eadfd5;border-radius:20px;background:linear-gradient(145deg,#fffaf3,#fff)}
.v5-rail-note strong{font-size:13px}.v5-rail-note p{font-size:12px;line-height:1.7}.v5-rail-note button{min-height:44px;color:var(--editorial-coral-deep)}

html body.onae-themed main{max-width:1440px!important;padding:42px 48px 96px!important}
html body.onae-themed .view{max-width:1240px}
html body.onae-themed #context-hero{max-width:1344px!important;margin-bottom:38px!important}
html body.onae-themed h2.sec{font-size:clamp(27px,2.4vw,38px)!important;letter-spacing:-.045em!important}
html body.onae-themed p.sec-desc{font-size:16px!important;color:var(--editorial-muted)!important}

html body.onae-themed .home-hero{
  min-height:460px;grid-template-columns:minmax(390px,.88fr) minmax(480px,1.12fr)!important;
  border-color:rgba(215,220,232,.88)!important;border-radius:32px!important;
  background:var(--editorial-paper)!important;box-shadow:var(--editorial-shadow)!important;
}
html body.onae-themed .home-hero-copy{padding:52px 48px!important;background:linear-gradient(135deg,#fffefc 35%,#fff8f0 100%)!important}
html body.onae-themed .home-hero-eyebrow{display:inline-flex;align-self:flex-start;padding:9px 13px;border-radius:999px;background:#fce8dd;color:#a94737!important;font-size:12px!important;letter-spacing:.025em}
html body.onae-themed .home-hero-h1{max-width:11ch;margin:20px 0 18px!important;font-size:clamp(40px,4vw,58px)!important;line-height:1.1!important;letter-spacing:-.06em!important;text-wrap:balance}
html body.onae-themed .home-hero-h1 strong,
html body.onae-themed .home-hero-h1 em{color:var(--editorial-coral-deep)!important}
html body.onae-themed .home-hero-sub{max-width:39ch;color:var(--editorial-muted)!important;font-size:18px!important;line-height:1.75!important}
html body.onae-themed .home-hero-cta{min-width:196px;min-height:52px;margin-top:24px!important;border-radius:16px!important;background:linear-gradient(120deg,var(--editorial-coral),#ed8b5c)!important;border-color:transparent!important;box-shadow:0 12px 26px rgba(211,90,67,.2)!important}
html body.onae-themed .home-trust-chips{margin-top:24px!important;gap:8px!important}
html body.onae-themed .home-trust-chip{padding:7px 10px!important;border-color:#e4ded8!important;border-radius:999px!important;background:rgba(255,255,255,.8)!important;color:#5c6574!important;font-size:11px!important}

.editorial-hero-stage{position:relative;min-width:0;min-height:460px;overflow:hidden;background:#e9ecef}
.editorial-hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s ease}
.editorial-hero-slide.is-active{opacity:1;visibility:visible}
.editorial-hero-slide img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.editorial-hero-slide .v5-hero-photo{min-height:0;border:0}
.editorial-hero-slide:first-child img{object-position:61% center}
.editorial-hero-caption{position:absolute;left:24px;right:24px;bottom:24px;max-width:390px;padding:15px 18px;border:1px solid rgba(255,255,255,.72);border-radius:18px;background:rgba(255,254,252,.9);box-shadow:0 14px 36px rgba(18,26,39,.18);color:var(--editorial-ink);font-size:14px;font-weight:780;line-height:1.5;backdrop-filter:blur(10px)}
.editorial-hero-controls{position:absolute;right:20px;bottom:20px;z-index:3;display:flex;align-items:center;gap:7px;padding:7px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,254,252,.92);box-shadow:0 8px 26px rgba(25,34,51,.18)}
.editorial-hero-controls button{min-width:44px;min-height:44px;border:0;border-radius:999px;background:transparent;color:var(--editorial-ink);font-weight:800}
.editorial-hero-controls button:hover,.editorial-hero-controls button:focus-visible{background:#f7e6dc;color:var(--editorial-coral-deep)}
.editorial-hero-dot{width:10px!important;min-width:10px!important;height:10px!important;min-height:10px!important;padding:0!important;background:#c8ced7!important}
.editorial-hero-dot.is-active{width:25px!important;background:var(--editorial-coral)!important}

html body.onae-themed .card,
html body.onae-themed .diag-card,
html body.onae-themed .rx-card,
html body.onae-themed .care-banner,
.editorial-gallery{
  border:1px solid rgba(215,221,232,.9)!important;border-radius:var(--editorial-radius)!important;
  background:rgba(255,254,252,.97)!important;box-shadow:0 16px 42px rgba(38,48,73,.075)!important;
}
html body.onae-themed .card,
html body.onae-themed .diag-card,
html body.onae-themed .rx-card{padding:clamp(22px,2.5vw,34px)!important}
html body.onae-themed .diag-card,
html body.onae-themed .store-card,
html body.onae-themed a.card,
html body.onae-themed button.card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background-color .22s ease}
html body.onae-themed .diag-card:hover,
html body.onae-themed .diag-card:focus-within,
html body.onae-themed .store-card:hover,
html body.onae-themed .store-card:focus-within,
html body.onae-themed a.card:hover,
html body.onae-themed a.card:focus-visible,
html body.onae-themed button.card:hover,
html body.onae-themed button.card:focus-visible{transform:translateY(-5px)!important;border-color:#e3b8a9!important;background:#fff!important;box-shadow:0 24px 56px rgba(42,49,70,.13)!important}
html body.onae-themed .card:not(a):not(button):hover,
html body.onae-themed .rx-card:hover{transform:none!important}
html body.onae-themed .btn,
html body.onae-themed .btn-gold{min-height:44px!important;padding:11px 17px!important;border-radius:14px!important;border-color:var(--editorial-coral)!important;background:var(--editorial-coral)!important;transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease}
html body.onae-themed .btn:hover,html body.onae-themed .btn:focus-visible{background:var(--editorial-coral-deep)!important;transform:translateY(-2px);box-shadow:0 10px 24px rgba(201,79,61,.18)!important}
html body.onae-themed .btn.ghost{border-color:#d9dee8!important;border-radius:14px!important;background:#fff!important;color:var(--editorial-ink)!important}
html body.onae-themed input,html body.onae-themed textarea,html body.onae-themed select{min-height:44px;border-color:#d5dce7!important;border-radius:14px!important}
.badge,.chip,.admin-pill{border-radius:999px!important}

html body.onae-themed .coaching-journey-list{gap:16px!important}
html body.onae-themed .coaching-step{padding:22px!important;border-color:#e0e4ec!important;border-radius:22px!important;background:linear-gradient(150deg,#fff,#fbfaf8)!important}
html body.onae-themed .coaching-step-no{border-radius:10px!important;background:#f8ddd1!important;color:#a44536!important}

.editorial-gallery{grid-column:1/-1;margin:34px 0 8px;padding:26px}
.editorial-gallery-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.editorial-gallery-kicker{margin:0 0 5px;color:var(--editorial-coral-deep);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.editorial-gallery h3{margin:0;font-size:clamp(21px,2vw,29px);letter-spacing:-.04em}
.editorial-gallery-head p:last-child{max-width:46ch;margin:0;color:var(--editorial-muted);font-size:14px;line-height:1.65}
.editorial-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.editorial-gallery figure{min-width:0;margin:0;overflow:hidden;border:1px solid #e1e5ed;border-radius:20px;background:#fff}
.editorial-gallery img{width:100%;aspect-ratio:4/3;display:block;object-fit:cover;background:#eef1f4}
.editorial-gallery figcaption{min-height:62px;padding:14px 15px;color:#465268;font-size:13px;font-weight:720;line-height:1.5}

.editorial-motion-ready .editorial-reveal{opacity:0;transform:translateY(20px)}
.editorial-motion-ready .editorial-reveal.is-visible{opacity:1;transform:none;transition:opacity .55s ease,transform .55s ease}
html body.onae-themed button:focus-visible,html body.onae-themed a:focus-visible,html body.onae-themed input:focus-visible,html body.onae-themed select:focus-visible,html body.onae-themed textarea:focus-visible,html body.onae-themed [tabindex]:focus-visible{outline:3px solid #2f68b1!important;outline-offset:3px!important}

@media(max-width:1180px){
  html body.onae-themed .hd-inner{padding:0 18px!important}
  html body.onae-themed .hd-actions button,html body.onae-themed .v5-eduverse-menu summary{padding-inline:11px!important;font-size:12px!important}
  html body.onae-themed main{padding-inline:30px!important}
  html body.onae-themed .home-hero{grid-template-columns:minmax(340px,.9fr) minmax(390px,1.1fr)!important}
  html body.onae-themed .home-hero-copy{padding:42px 36px!important}
}
@media(max-width:980px){
  html body.onae-themed main{padding:30px 24px 80px!important}
  html body.onae-themed .home-hero{grid-template-columns:1fr!important}
  .editorial-hero-stage{min-height:360px}
  .v5-rail{width:286px;border-radius:0 26px 26px 0}
  .v5-mobile-menu{top:17px;left:13px;width:44px;height:44px;border-radius:14px;background:#fffefc}
}
@media(max-width:767px){
  html body.onae-themed .hd-inner{min-height:64px!important;padding:0 10px!important}
  html body.onae-themed main{padding:22px 16px 62px!important}
  html body.onae-themed #context-hero{margin-bottom:28px!important}
  html body.onae-themed .home-hero{min-height:0;border-radius:24px!important}
  html body.onae-themed .home-hero-copy{padding:32px 24px!important}
  html body.onae-themed .home-hero-h1{font-size:clamp(34px,11vw,45px)!important}
  html body.onae-themed .home-hero-sub{font-size:16px!important}
  html body.onae-themed .home-hero-cta{width:100%;align-self:stretch}
  .editorial-hero-stage{min-height:290px}
  .editorial-hero-caption{left:14px;right:14px;bottom:68px;padding:11px 13px;font-size:12px}
  .editorial-hero-controls{right:14px;bottom:12px}
  .editorial-gallery{padding:20px;border-radius:22px!important}
  .editorial-gallery-head{display:block}.editorial-gallery-head p:last-child{margin-top:9px}
  .editorial-gallery-grid{grid-template-columns:1fr}
  .editorial-gallery figcaption{min-height:0}
  html body.onae-themed .coaching-journey-list{grid-template-columns:1fr!important}
}
@media(max-width:420px){
  html body.onae-themed main{padding-inline:12px!important}
  html body.onae-themed .home-hero-copy{padding:28px 20px!important}
  .editorial-hero-stage{min-height:245px}
  .editorial-hero-caption{max-width:calc(100% - 28px)}
}
@media(prefers-reduced-motion:reduce){
  .editorial-hero-slide,.editorial-motion-ready .editorial-reveal,.v5-nav button,html body.onae-themed .diag-card,html body.onae-themed .store-card,html body.onae-themed .btn{transition:none!important;transform:none!important}
}
@media(prefers-reduced-transparency:reduce){
  html body.onae-themed header.app,.editorial-hero-caption,.editorial-hero-controls{background:#fffefc!important;backdrop-filter:none!important}
}
