/* Young Enterprises VNext — parent-company preview layer.
   Corporate, evidence-led and systems-oriented; intentionally distinct from Cedarwick Press. */

body.ye-vnext-home,
body.ye-vnext-products {
  --ye-ink: #102631;
  --ye-deep: #0c2631;
  --ye-panel: #123744;
  --ye-teal: #1f6c6b;
  --ye-teal-soft: #dcebea;
  --ye-cyan: #67b5b2;
  --ye-gold: #b99858;
  --ye-paper: #fbfaf6;
  --ye-mist: #eef2ef;
  --ye-line: rgba(16, 38, 49, .14);
  --ye-shadow: 0 24px 70px rgba(12, 38, 49, .12);
  background: var(--ye-paper);
}

body.ye-vnext-home .site-header,
body.ye-vnext-products .site-header {
  background: rgba(251,250,246,.96);
  box-shadow: 0 12px 32px rgba(12,38,49,.045);
  border-bottom-color: rgba(16,38,49,.1);
}

.ye-vnext-shell { width: min(calc(100% - 48px), 1220px); margin-inline: auto; }
.ye-vnext-eyebrow { margin: 0 0 .9rem; color: var(--ye-teal); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.ye-vnext-muted { color: rgba(16,38,49,.66); }
.ye-vnext-status { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .62rem; border: 1px solid var(--ye-line); border-radius: 999px; color: var(--ye-deep); background: rgba(255,255,255,.55); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ye-vnext-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ye-teal); box-shadow: 0 0 0 4px rgba(31,108,107,.11); }

/* Hero — one integrated operating picture instead of isolated clip-art widgets. */
.ye-vnext-hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 8vw, 7.3rem) 0 clamp(4rem, 7vw, 6rem); background: radial-gradient(circle at 84% 18%, rgba(103,181,178,.16), transparent 28rem), linear-gradient(180deg, #fff, #f5f7f4); }
.ye-vnext-hero::after { content:""; position:absolute; inset:auto -8rem -14rem auto; width:31rem; aspect-ratio:1; border:1px solid rgba(31,108,107,.09); border-radius:50%; box-shadow:0 0 0 7rem rgba(31,108,107,.025),0 0 0 14rem rgba(31,108,107,.018); pointer-events:none; }
.ye-vnext-hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr); gap:clamp(3rem,7vw,6.5rem); align-items:center; }
.ye-vnext-hero-copy h1 { max-width:760px; margin:.35rem 0 1.4rem; font-size:clamp(3.2rem,6vw,5.8rem); line-height:.96; letter-spacing:-.045em; text-wrap:balance; }
.ye-vnext-hero-copy .lead { max-width:640px; font-size:clamp(1.12rem,1.55vw,1.35rem); line-height:1.72; color:rgba(16,38,49,.73); }
.ye-vnext-proofline { display:flex; flex-wrap:wrap; gap:.65rem; margin:1.8rem 0 0; padding:0; list-style:none; }
.ye-vnext-proofline li { padding:.55rem .75rem; border-left:2px solid var(--ye-teal); background:rgba(255,255,255,.58); color:rgba(16,38,49,.72); font-size:.82rem; }

.ye-system-stage { position:relative; min-height:570px; perspective:1400px; }
.ye-system-stage::before { content:""; position:absolute; inset:10% 7% 3% 8%; border-radius:34px; background:linear-gradient(145deg,rgba(12,38,49,.96),rgba(18,55,68,.93)); box-shadow:var(--ye-shadow); transform:rotateY(-5deg) rotateX(2deg); }
.ye-system-card { position:absolute; border:1px solid rgba(255,255,255,.48); border-radius:18px; background:rgba(255,255,255,.96); box-shadow:0 18px 45px rgba(7,32,43,.16); color:var(--ye-ink); overflow:hidden; }
.ye-system-card .bar { height:34px; display:flex; align-items:center; gap:6px; padding:0 12px; background:#edf3f1; border-bottom:1px solid var(--ye-line); }
.ye-system-card .bar i { width:7px; height:7px; border-radius:50%; background:rgba(16,38,49,.22); }
.ye-system-card .body { padding:14px 16px; }
.ye-system-card small { color:rgba(16,38,49,.56); }
.ye-stage-service { width:58%; left:0; top:6%; transform:rotate(-2.4deg); }
.ye-stage-work { width:61%; right:0; top:27%; transform:rotate(2.2deg); }
.ye-stage-finance { width:56%; left:8%; bottom:0; transform:rotate(.8deg); }
.ye-stage-book { width:154px; right:6%; bottom:1%; padding:12px; background:#f8f4eb; transform:rotate(4deg); }
.ye-stage-book img { display:block; width:100%; height:auto; filter:drop-shadow(0 13px 13px rgba(7,32,43,.18)); }

.ye-sheet-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.ye-sheet-score { font-size:1.7rem; font-weight:800; color:var(--ye-teal); }
.ye-sheet-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:3px; margin-top:11px; }
.ye-sheet-grid span { height:12px; border-radius:2px; background:#dfe9e6; }
.ye-sheet-grid span:nth-child(5n),.ye-sheet-grid span:nth-child(7n){background:#bcdad7}.ye-sheet-grid span:nth-child(11n){background:#dfcfae}
.ye-evidence-row { display:flex; justify-content:space-between; gap:.6rem; margin-top:11px; padding-top:10px; border-top:1px solid var(--ye-line); font-size:.74rem; }

.ye-flow { display:grid; grid-template-columns:auto 1fr; gap:10px 12px; align-items:center; }
.ye-flow-node { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:var(--ye-deep); color:white; font-size:.72rem; font-weight:800; }
.ye-flow-row { display:flex; justify-content:space-between; gap:.6rem; align-items:center; }
.ye-flow-row strong { font-size:.82rem; }
.ye-flow-row span { font-size:.68rem; color:var(--ye-teal); }
.ye-editions { display:flex; gap:6px; margin-top:12px; }
.ye-editions span { padding:5px 7px; border-radius:999px; background:var(--ye-teal-soft); color:var(--ye-deep); font-size:.62rem; font-weight:750; }

.ye-finance-top { display:flex; justify-content:space-between; align-items:end; gap:1rem; }
.ye-finance-top strong { font-size:1.55rem; }
.ye-finance-bars { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; align-items:end; height:58px; margin-top:10px; }
.ye-finance-bars i { display:block; border-radius:4px 4px 2px 2px; background:linear-gradient(#67b5b2,#1f6c6b); }
.ye-finance-bars i:nth-child(1){height:28%}.ye-finance-bars i:nth-child(2){height:52%}.ye-finance-bars i:nth-child(3){height:42%}.ye-finance-bars i:nth-child(4){height:74%}.ye-finance-bars i:nth-child(5){height:58%}.ye-finance-bars i:nth-child(6){height:88%}.ye-finance-bars i:nth-child(7){height:67%}
.ye-finance-foot { display:flex; justify-content:space-between; margin-top:9px; padding-top:9px; border-top:1px solid var(--ye-line); font-size:.68rem; }

/* Business lines */
.ye-vnext-lines { padding:clamp(4.4rem,8vw,7rem) 0; }
.ye-vnext-heading { display:grid; grid-template-columns:minmax(0,.82fr) minmax(300px,.5fr); gap:3rem; align-items:end; margin-bottom:2.5rem; }
.ye-vnext-heading h2 { margin:.2rem 0 0; max-width:780px; font-size:clamp(2.5rem,4.6vw,4.6rem); line-height:1.02; letter-spacing:-.035em; }
.ye-vnext-heading > p { margin:0; line-height:1.7; color:rgba(16,38,49,.66); }
.ye-line-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--ye-line); border-bottom:1px solid var(--ye-line); }
.ye-line-card { position:relative; padding:clamp(1.7rem,3vw,2.6rem); min-height:360px; border-right:1px solid var(--ye-line); overflow:hidden; }
.ye-line-card:last-child { border-right:0; }
.ye-line-card h3 { margin:1rem 0 .75rem; font-size:clamp(1.6rem,2.5vw,2.35rem); }
.ye-line-card p { line-height:1.7; color:rgba(16,38,49,.68); }
.ye-line-number { color:var(--ye-gold); font-size:.72rem; letter-spacing:.16em; }
.ye-line-signal { position:absolute; right:-32px; bottom:-38px; width:165px; aspect-ratio:1; border-radius:50%; border:1px solid rgba(31,108,107,.16); box-shadow:0 0 0 28px rgba(31,108,107,.035),0 0 0 56px rgba(31,108,107,.02); }

/* Product showcase */
.ye-product-stage { padding:clamp(4.8rem,8vw,7.4rem) 0; background:var(--ye-deep); color:white; }
.ye-product-stage .ye-vnext-eyebrow { color:#91d0cd; }
.ye-product-stage .ye-vnext-heading > p { color:rgba(255,255,255,.67); }
.ye-product-stage .ye-vnext-heading h2 { color:white; }
.ye-product-showcase { display:grid; gap:1px; background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.13); }
.ye-product-row { display:grid; grid-template-columns:minmax(0,.86fr) minmax(440px,1.14fr); min-height:540px; background:#10313d; }
.ye-product-row.reverse { grid-template-columns:minmax(440px,1.14fr) minmax(0,.86fr); }
.ye-product-row.reverse .ye-product-copy { order:2; }
.ye-product-row.reverse .ye-product-graphic { order:1; }
.ye-product-copy { padding:clamp(2rem,5vw,4.7rem); align-self:center; }
.ye-product-copy h3 { margin:.75rem 0 1rem; color:white; font-size:clamp(2.3rem,4.4vw,4.3rem); line-height:1; letter-spacing:-.03em; }
.ye-product-copy p { max-width:620px; color:rgba(255,255,255,.72); line-height:1.72; }
.ye-product-copy .text-link { color:#b7ddda; }
.ye-product-copy .ye-vnext-status { border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#eaf6f4; }
.ye-product-copy .ye-vnext-status::before { background:#8fd0cc; }
.ye-product-graphic { display:grid; place-items:center; min-height:100%; padding:clamp(1.5rem,4vw,3.6rem); background:radial-gradient(circle at 50% 50%,rgba(103,181,178,.12),transparent 24rem),#0c2934; }

.ye-workbench { width:min(610px,100%); border:1px solid rgba(255,255,255,.15); border-radius:24px; background:#f8faf8; color:var(--ye-ink); box-shadow:0 24px 50px rgba(0,0,0,.22); overflow:hidden; }
.ye-workbench-top { display:flex; justify-content:space-between; gap:1rem; padding:13px 17px; background:#eaf1ee; border-bottom:1px solid var(--ye-line); font-size:.72rem; }
.ye-workbench-body { display:grid; grid-template-columns:145px 1fr; min-height:330px; }
.ye-workbench-sidebar { padding:15px 11px; background:#123744; color:#e6f2f0; }
.ye-workbench-sidebar b { display:block; margin-bottom:12px; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; }
.ye-workbench-sidebar span { display:block; margin:6px 0; padding:7px 8px; border-radius:7px; color:rgba(255,255,255,.66); font-size:.68rem; }
.ye-workbench-sidebar span.active { background:rgba(103,181,178,.15); color:white; }
.ye-workbench-main { padding:18px; }
.ye-workbench-title { display:flex; justify-content:space-between; gap:1rem; align-items:start; }
.ye-workbench-title strong { font-size:1.15rem; }
.ye-workbench-title em { font-style:normal; padding:5px 7px; border-radius:999px; background:#dff0ed; color:#17645f; font-size:.62rem; font-weight:800; }
.ye-work-timeline { display:grid; gap:9px; margin-top:19px; }
.ye-work-step { display:grid; grid-template-columns:72px 1fr auto; gap:10px; align-items:center; padding:10px 11px; border:1px solid var(--ye-line); border-radius:10px; background:white; font-size:.7rem; }
.ye-work-step b { font-size:.72rem; }.ye-work-step i { font-style:normal; color:var(--ye-teal); font-weight:750; }
.ye-work-footer { display:flex; justify-content:space-between; gap:1rem; margin-top:17px; padding-top:14px; border-top:1px solid var(--ye-line); font-size:.66rem; color:rgba(16,38,49,.62); }

.ye-finance-console { width:min(630px,100%); display:grid; grid-template-columns:1fr 1.25fr; border:1px solid rgba(255,255,255,.13); border-radius:24px; overflow:hidden; box-shadow:0 24px 50px rgba(0,0,0,.22); background:white; color:var(--ye-ink); }
.ye-finance-imports { padding:18px; background:#eaf0ee; }
.ye-finance-imports h4,.ye-finance-report h4 { margin:0 0 13px; font-size:.74rem; letter-spacing:.09em; text-transform:uppercase; }
.ye-source-file { margin:8px 0; padding:10px; border-radius:9px; background:white; border:1px solid var(--ye-line); font-size:.67rem; }
.ye-source-file b { display:block; margin-bottom:3px; }.ye-source-file span { color:var(--ye-teal); }
.ye-finance-report { padding:18px; }
.ye-kpis { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.ye-kpi { padding:11px; border-radius:10px; background:#f2f6f4; }.ye-kpi strong { display:block; font-size:1.15rem; }.ye-kpi span { font-size:.62rem; color:rgba(16,38,49,.6); }
.ye-review-queue { margin-top:12px; border-top:1px solid var(--ye-line); padding-top:11px; }
.ye-review-queue div { display:flex; justify-content:space-between; gap:.6rem; padding:7px 0; font-size:.65rem; border-bottom:1px solid rgba(16,38,49,.08); }
.ye-review-queue b { color:var(--ye-teal); }
.ye-reconcile { display:flex; justify-content:space-between; gap:.5rem; margin-top:12px; padding:9px 10px; border-radius:9px; background:#dff0ed; font-size:.66rem; }.ye-reconcile strong { color:#17645f; }

/* Professional services and emerging offers */
.ye-services-vnext { padding:clamp(4.8rem,8vw,7rem) 0; background:#f2f5f2; }
.ye-service-proof { display:grid; grid-template-columns:minmax(0,1fr) minmax(430px,.9fr); gap:clamp(3rem,7vw,6rem); align-items:center; }
.ye-service-proof h2 { margin:.3rem 0 1rem; font-size:clamp(2.5rem,4.6vw,4.6rem); line-height:1.02; letter-spacing:-.035em; }
.ye-service-proof p { line-height:1.72; color:rgba(16,38,49,.68); }
.ye-diagnostic { border:1px solid var(--ye-line); border-radius:20px; background:white; box-shadow:var(--ye-shadow); overflow:hidden; }
.ye-diagnostic-head { display:flex; justify-content:space-between; padding:13px 15px; background:#e7efec; font-size:.7rem; }
.ye-diagnostic-main { display:grid; grid-template-columns:1.25fr .75fr; min-height:270px; }
.ye-diagnostic-sheet { padding:15px; }
.ye-diagnostic-cells { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }.ye-diagnostic-cells i{height:15px;background:#e6ece9;border-radius:2px}.ye-diagnostic-cells i:nth-child(9n){background:#efdfbf}.ye-diagnostic-cells i:nth-child(13n){background:#c2dcda}
.ye-diagnostic-side { padding:15px; border-left:1px solid var(--ye-line); }.ye-diagnostic-side div{padding:10px 0;border-bottom:1px solid var(--ye-line);font-size:.68rem}.ye-diagnostic-side strong{display:block;font-size:1rem;color:var(--ye-teal)}
.ye-diagnostic-foot { display:flex; justify-content:space-between; gap:1rem; padding:12px 15px; border-top:1px solid var(--ye-line); font-size:.66rem; }

.ye-emerging { padding:clamp(4.6rem,8vw,7rem) 0; }
.ye-offer-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1px; background:var(--ye-line); border:1px solid var(--ye-line); }
.ye-offer { min-height:235px; padding:1.5rem; background:var(--ye-paper); }
.ye-offer span { display:block; color:var(--ye-gold); font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; }
.ye-offer h3 { margin:.7rem 0 .65rem; font-size:1.25rem; }
.ye-offer p { margin:0; font-size:.86rem; line-height:1.62; color:rgba(16,38,49,.64); }

/* Products page */
.ye-products-hero { padding:clamp(4.5rem,8vw,7rem) 0 3.5rem; background:linear-gradient(180deg,#fff,#eef3f0); }
.ye-products-hero-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(430px,.75fr); gap:4rem; align-items:end; }
.ye-products-hero h1 { margin:.3rem 0 1rem; font-size:clamp(3.2rem,6vw,5.7rem); line-height:.96; letter-spacing:-.045em; }
.ye-products-hero p { max-width:650px; line-height:1.72; color:rgba(16,38,49,.68); }
.ye-product-index { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--ye-line); border:1px solid var(--ye-line); }
.ye-product-index a { display:block; padding:1.35rem 1.5rem; background:rgba(255,255,255,.65); color:var(--ye-deep); text-decoration:none; }.ye-product-index strong{display:block;margin:.35rem 0;font-size:1.1rem}.ye-product-index span{font-size:.7rem;color:var(--ye-teal);text-transform:uppercase;letter-spacing:.08em}
.ye-product-detail { padding:clamp(4.8rem,8vw,7rem) 0; border-bottom:1px solid var(--ye-line); }
.ye-product-detail-grid { display:grid; grid-template-columns:minmax(0,.82fr) minmax(480px,1.05fr); gap:clamp(3rem,7vw,6rem); align-items:center; }.ye-product-detail.reverse .ye-product-detail-copy{order:2}.ye-product-detail.reverse .ye-product-detail-visual{order:1}
.ye-product-detail-copy h2 { margin:.75rem 0 1rem; font-size:clamp(2.7rem,5vw,4.8rem); line-height:1; letter-spacing:-.035em; }
.ye-product-detail-copy p { line-height:1.72; color:rgba(16,38,49,.68); }
.ye-edition-cards { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:1.4rem 0; }.ye-edition-card{padding:1rem;border:1px solid var(--ye-line);border-radius:12px;background:#f6f8f5}.ye-edition-card strong{display:block;margin-bottom:.35rem}.ye-edition-card span{font-size:.76rem;line-height:1.5;color:rgba(16,38,49,.62)}
.ye-capability-list { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; margin:1.2rem 0; padding:0; list-style:none; }.ye-capability-list li{padding:.72rem .8rem;border-left:2px solid var(--ye-teal);background:#f1f5f2;font-size:.82rem}

@media (max-width: 1060px) {
  .ye-vnext-hero-grid,.ye-product-row,.ye-product-row.reverse,.ye-service-proof,.ye-products-hero-grid,.ye-product-detail-grid { grid-template-columns:1fr; }
  .ye-vnext-hero-grid { gap:2.5rem; }
  .ye-system-stage { min-height:540px; width:min(760px,100%); margin-inline:auto; }
  .ye-product-row.reverse .ye-product-copy,.ye-product-row.reverse .ye-product-graphic,.ye-product-detail.reverse .ye-product-detail-copy,.ye-product-detail.reverse .ye-product-detail-visual { order:initial; }
  .ye-line-grid { grid-template-columns:1fr; }.ye-line-card{min-height:0;border-right:0;border-bottom:1px solid var(--ye-line)}.ye-line-card:last-child{border-bottom:0}
  .ye-offer-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 720px) {
  .ye-vnext-shell { width:min(calc(100% - 28px),1220px); }
  .ye-vnext-hero { padding-top:3.5rem; }
  .ye-vnext-hero-copy h1,.ye-products-hero h1 { font-size:clamp(2.85rem,13vw,4.6rem); }
  .ye-vnext-heading { grid-template-columns:1fr; gap:1rem; }.ye-vnext-heading h2,.ye-service-proof h2{font-size:clamp(2.4rem,10.8vw,3.7rem)}
  .ye-system-stage { min-height:500px; transform:scale(.95); transform-origin:top center; margin-bottom:-20px; }
  .ye-stage-service { width:70%; }.ye-stage-work{width:72%;top:29%}.ye-stage-finance{width:67%;left:3%}.ye-stage-book{width:120px;right:1%}
  .ye-workbench-body { grid-template-columns:100px 1fr; }.ye-workbench-sidebar span:nth-of-type(n+4){display:none}.ye-work-step{grid-template-columns:56px 1fr}.ye-work-step i{display:none}
  .ye-finance-console { grid-template-columns:1fr; }.ye-finance-imports{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ye-finance-imports h4{grid-column:1/-1}.ye-source-file{margin:0}
  .ye-product-copy,.ye-product-graphic { padding:1.35rem; }.ye-product-row{min-height:0}.ye-product-copy h3{font-size:clamp(2.25rem,10vw,3.4rem)}
  .ye-offer-grid,.ye-product-index,.ye-edition-cards,.ye-capability-list { grid-template-columns:1fr; }
  .ye-offer{min-height:0}.ye-product-detail-grid{gap:2rem}.ye-product-detail-copy h2{font-size:clamp(2.5rem,11vw,3.7rem)}
  .ye-diagnostic-main { grid-template-columns:1fr; }.ye-diagnostic-side{border-left:0;border-top:1px solid var(--ye-line);display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ye-diagnostic-side div{border:0;padding:4px}
}

@media (max-width: 480px) {
  .ye-system-stage { min-height:440px; transform:scale(.9); margin-inline:-8%; width:116%; margin-bottom:-45px; }
  .ye-stage-book { width:105px; }
  .ye-finance-imports { grid-template-columns:1fr; }.ye-finance-imports h4{grid-column:auto}
  .ye-workbench-body { grid-template-columns:76px 1fr; }.ye-workbench-main{padding:12px}.ye-workbench-sidebar{padding:12px 7px}.ye-workbench-sidebar span{padding:6px 4px}
}
