/*
 * ET Group Justice: Why ET Group (/justice/why-et-group/) only. Loaded after justice.css and subnav.css.
 * Ported from John's Why ET Group design (why.css and why/<part>.css, in that order), every selector scoped under
 * .etgj; class prefix wy-. Reveals: pages/why-et-group.js tags content blocks with data-wy-reveal (the design's why.js).
 * Nov 24 revision (Robbie's feedback). The design's review layer is stripped from the design itself.
 */

/* Shared candidate: the design (v45.css) re-declares --rule-grad on sections after the hero, so their hairlines use that
   section's --line (.12); justice.css declares it once on .etgj, where --line is .13 */
.etgj .etgj-sheet:not(.etgj-sheet--hero) { --rule-grad: linear-gradient(var(--line), var(--line)); }

/* ---------- Shared within the page: head rows, group label, cell titles, media slots, "ET to supply" placeholders, light panels, reveals (design: why.css) ---------- */
.etgj [id] { scroll-margin-top: 96px; }
.etgj .wy-head .etgj-h2 { margin-bottom: 16px; }
@media (min-width: 961px) {
  .etgj .wy-head > :first-child { grid-column: 1 / 7; }
  .etgj .wy-head > :nth-child(2) { grid-column: 8 / -1; }
}
.etgj .wy-head .etgj-statement + .etgj-statement { margin-top: 16px; }
@media (min-width: 961px) {
  .etgj .etgj-head:not(.etgj-head--stack):not(.etgj-head--center):not(.etgj-head--link):not(.wy-head) > :nth-child(2), .etgj .etgj-features { padding-left: var(--cell-pad); }
}
.etgj .wy-label { grid-column: 1 / -1; margin: var(--head-gap) 0 0; font: 400 var(--fs-small)/1.4 var(--ff); letter-spacing: normal; color: var(--grey); }
.etgj .etgj-head + .wy-label { margin-top: 0; }
.etgj .wy-cell__title { margin: 0 0 12px; font: 400 var(--fs-heading)/1.25 var(--ff-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.etgj .wy-cell p { margin: 0; }
.etgj .wy-slot {
  position: relative; margin: 0; display: grid; place-items: end start; overflow: hidden;
  border-radius: 12px; aspect-ratio: 3 / 2;
  color: rgba(170, 196, 235, .5);
  background:
    linear-gradient(rgba(143, 174, 230, .07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(143, 174, 230, .07) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(120% 90% at 30% 20%, rgba(70, 104, 170, .22), transparent 60%),
    #0d1522;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.etgj .wy-panel {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin: 0 0 28px; border-radius: 12px;
  background: linear-gradient(180deg, #F4F5F7, #E3E6EA); color: #14171C; overflow: hidden;
}
/* Nov 25: scroll reveals switched off on every Justice page: hairlines, dividers and step connectors sit drawn from the start. */
body[data-a11y-toggle="active"] .etgj [data-wy-reveal] { opacity: 1 !important; translate: none !important; }
.etgj.wy-reveal-init [data-wy-reveal] { transition: none !important; }
.etgj.etgj-js :is(.etgj-sheet .etgj-case, .etgj-sheet .etgj-feature, .etgj-sheet .etgj-strip, .etgj-sheet .etgj-flow__step, .etgj-sheet .etgj-closing) { opacity: 1; translate: none; }
@media (min-width: 961px) {
  .etgj .etgj-head--stack > :first-child, .etgj .etgj-head--stack > :nth-child(2) { grid-column: 1 / 7; }
}
/* Nov 19 revision: every heading and paragraph on this page wraps with text-wrap: pretty. Doubled class so it also wins
   over justice.css's text-wrap: balance rules */
.etgj.etgj :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote, th, td) { text-wrap: pretty; }


/* ---------- Hero: eyebrow across the top, headline and lede on 1 to 6, the record card on 7 to 12, then the logo band (design: why/hero.css) ---------- */
.etgj .wy-hero { padding-bottom: 0; }
.etgj .wy-hero .etgj-hero__title { margin: 0; }
.etgj .wy-hero .etgj-hero__lede { margin: 24px 0 32px; max-width: 34em; }   /* keeps justice.css's left rule and indent */
.etgj .wy-hero-record { padding: 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.etgj .wy-hero-figs { margin: 0; padding: 0; list-style: none; }
.etgj .wy-hero-figs li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: start;   /* figure and label aligned by their tops */
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.etgj .wy-hero-figs li:first-child { padding-top: 0; }
.etgj .wy-hero-figs li:last-child { padding-bottom: 0; border-bottom: 0; }
.etgj .wy-hero-fig { font: 400 var(--fs-title)/1.05 var(--ff-display); letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.etgj .wy-hero-fig__text { display: flex; flex-direction: column; gap: 4px; padding-top: var(--wy-fig-nudge, 4px); }   /* the label's cap height meets the figure's */
.etgj .wy-hero-fig__name { font: 400 var(--fs-body)/1.4 var(--ff); color: var(--ink); text-wrap: pretty; }
.etgj .wy-hero-fig__why { font: 400 var(--fs-small)/1.4 var(--ff); color: var(--grey); }
.etgj .wy-hero .etgj-hero__lede:has(+ .wy-hero__lede2) { margin-bottom: 0; padding-bottom: 16px; }   /* two paragraphs, one unbroken rule */
.etgj .wy-hero .wy-hero__lede2 { margin-top: 0; }
@media (min-width: 961px) {
  .etgj .wy-hero { row-gap: 0; }
  .etgj .wy-hero > .wy-hero-brand { grid-column: 1 / -1; grid-row: 1; margin: 0 0 16px; }
  .etgj .wy-hero > .etgj-hero__text { grid-column: 1 / 7; grid-row: 2; }
  .etgj .wy-hero > .wy-hero-record { grid-column: 7 / -1; grid-row: 2; align-self: start; margin: calc(var(--fs-display) * 0.35) 0 0 var(--cell-pad); }
}
@media (min-width: 961px) and (max-width: 1320px) {
  .etgj .wy-hero-record { padding: 24px 28px; }
  .etgj .wy-hero-figs li { padding: 16px 0; }
}
@media (max-width: 960px) {
  .etgj .wy-hero > * { grid-column: 1 / -1; }
  .etgj .wy-hero-record { margin-top: 40px; padding: 24px; }
}
@media (max-width: 520px) {
  .etgj .wy-hero-figs li { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .etgj.etgj-js .wy-hero-brand { opacity: 0; translate: 0 20px; animation: etgj-rise 600ms var(--ease) forwards; }
  .etgj.etgj-js .wy-hero-record { opacity: 0; translate: 0 20px; animation: etgj-rise 600ms var(--ease) 260ms forwards; }
}
body[data-a11y-toggle="active"] .etgj :is(.wy-hero-brand, .wy-hero-record) { opacity: 1 !important; translate: none !important; animation: none !important; }


/* ---------- Experience and the program feature (case with fact rows, then a strip) (design: why/experience.css) ---------- */
.etgj .wy-experience-more { margin: 16px 0 0; color: var(--ink-2); }
.etgj .wy-program-case { align-items: start; }
.etgj .wy-program-facts { margin: 0 0 32px; padding: 0; background: var(--rule-grad) left bottom / 100% var(--rule-h) no-repeat; }
.etgj .wy-program-facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--gap); padding: 14px 0 16px; background: var(--rule-grad) left top / 100% var(--rule-h) no-repeat; }
.etgj .wy-program-facts dt { font: 400 var(--fs-small)/1.45 var(--ff); color: var(--grey); }
.etgj .wy-program-facts dd { margin: 0; font: 400 var(--fs-small)/1.45 var(--ff); color: var(--ink-2); }
@media (max-width: 520px) {
  .etgj .wy-program-facts > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}
/* "A record that can support the next program": a card under the photo, on the hero record card's surface */
.etgj .wy-program-side { display: flex; flex-direction: column; gap: var(--gap); }
.etgj .wy-program-next { padding: 28px 32px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.etgj .wy-program-next .etgj-strip__title { margin: 0 0 10px; }
.etgj .wy-program-next p { margin: 0; color: var(--ink-2); }
@media (max-width: 960px) {
  .etgj .wy-program-next { padding: 22px 22px 24px; }
}
.etgj .wy-program-side > .etgj-media { margin: 0; }


/* ---------- A strategic partner: five hairline rows, then the strip (design: why/capabilities.css) ---------- */
.etgj .wy-caps { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin: 0; padding: 0; list-style: none; }
.etgj .wy-caps > li {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline;
  padding: 28px 0 32px; background: var(--rule-grad) left top / 100% 1px no-repeat;
}
.etgj .wy-caps > li:last-child { background: var(--rule-grad) left top / 100% 1px no-repeat, var(--rule-grad) left bottom / 100% 1px no-repeat; }
.etgj .wy-caps__name { grid-column: 1 / 6; margin: 0; font: 400 var(--fs-heading)/1.25 var(--ff-display); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.etgj .wy-caps p { grid-column: 7 / -1; margin: 0; padding-left: var(--cell-pad); color: var(--ink-2); max-width: 40em; }
.etgj .wy-caps + .etgj-strip > div { grid-column: 1 / 7; }
@media (max-width: 960px) {
  .etgj .wy-caps__name, .etgj .wy-caps p { grid-column: 1 / -1; }
  .etgj .wy-caps + .etgj-strip > div { grid-column: 1 / -1; }   /* full width on phones (was squeezed into half) */
  .etgj .wy-caps p { padding-left: 0; margin-top: 10px; }
  .etgj .wy-caps > li { padding: 22px 0 24px; }
}


/* ---------- Ricoh (case with the logo panel, label, four cells) and Delivery across Canada (hubs, history) (design: why/reach.css) ---------- */
.etgj .wy-ricoh-logo { aspect-ratio: 3 / 2; margin: 0; }
.etgj .wy-ricoh-logo img { width: 42%; height: auto; }
.etgj .wy-ricoh-case { align-items: center; }
.etgj .wy-ricoh-case + .wy-label { margin-bottom: 20px; }
.etgj .wy-reach-hubs { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.etgj .wy-reach-map { grid-column: 1 / 7; margin: 0; aspect-ratio: 3 / 2; }
.etgj .wy-reach-hubs__text { grid-column: 7 / -1; padding-left: var(--cell-pad); }
.etgj .wy-reach-hubs__fig { margin: 0; font: 400 var(--fs-display)/1.05 var(--ff-display); letter-spacing: -0.03em; color: var(--ink); }
.etgj .wy-reach-hubs__name { margin: 12px 0 0; font: 400 var(--fs-body)/1.4 var(--ff); color: var(--ink); }
.etgj .wy-reach-hubs__note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font: 400 var(--fs-small)/1.5 var(--ff); color: var(--grey); max-width: 32em; }
/* Nov 24: the office map in the slot (the About page's Footprint map, ported here so the page does not depend on that
   plugin): outline white at 14%, nine dots, ET Group offices larger and red, Ricoh white; outline keeps 965 x 820 */
.etgj .wy-map { position: absolute; top: 6%; bottom: 13%; left: 50%; aspect-ratio: 965 / 820; transform: translateX(-50%); }
.etgj .wy-map__outline { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: brightness(0) invert(1); opacity: .14; }
.etgj .wy-map__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.etgj .wy-map__dot--et { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--red); box-shadow: 0 0 0 5px rgba(226, 31, 38, .25); }
.etgj .wy-map__key { position: relative; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 20px; font: 400 var(--fs-small)/1.3 var(--ff); color: var(--ink-2); }
.etgj .wy-map__key-item { display: inline-flex; align-items: center; gap: 8px; }
.etgj .wy-map__key-item::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.etgj .wy-map__key-item--et::before { width: 10px; height: 10px; background: var(--red); box-shadow: 0 0 0 3px rgba(226, 31, 38, .25); }
@media (max-width: 520px) {
  .etgj .wy-map { top: 6%; bottom: 20%; }
  .etgj .wy-map__dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
  .etgj .wy-map__dot--et { width: 12px; height: 12px; margin: -6px 0 0 -6px; box-shadow: 0 0 0 4px rgba(226, 31, 38, .25); }
  .etgj .wy-map__key { margin: 12px 14px; gap: 6px 16px; }
}
.etgj .wy-history-head { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; margin-top: var(--head-gap); padding-top: var(--head-gap); background: var(--rule-grad) left top / 100% 1px no-repeat; }
.etgj .wy-history-label { grid-column: 1 / 6; margin: 0; font: 400 var(--fs-subtitle)/1.15 var(--ff-display); letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.etgj .wy-history-intro { grid-column: 7 / -1; margin: 0; padding-left: var(--cell-pad); color: var(--ink-2); }
.etgj .wy-history { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin: 48px 0 0; padding: 0; list-style: none; position: relative; }
.etgj .wy-history::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.etgj .wy-history > li { grid-column: span 3; position: relative; padding: 32px var(--gap) 0 0; }
.etgj .wy-history > li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--base, #141517); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.etgj .wy-history > li:last-child::before { background: var(--ink); box-shadow: none; }
.etgj .wy-history__year { display: block; font: 400 var(--fs-subtitle)/1.1 var(--ff-display); letter-spacing: -0.02em; color: var(--ink); }
.etgj .wy-history__title { margin: 12px 0 8px; font: 400 var(--fs-heading)/1.25 var(--ff-display); letter-spacing: -0.01em; color: var(--ink); }
.etgj .wy-history p { margin: 0; color: var(--ink-2); }
@media (max-width: 960px) {
  .etgj .wy-reach-hubs__text, .etgj .wy-reach-map, .etgj .wy-history-label, .etgj .wy-history-intro { grid-column: 1 / -1; }
  .etgj .wy-reach-hubs__text { margin-top: 28px; padding-left: 0; }
  .etgj .wy-history-intro { margin-top: 12px; padding-left: 0; }
  .etgj .wy-history { margin-top: 32px; }
  .etgj .wy-history::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .etgj .wy-history > li { grid-column: 1 / -1; padding: 0 0 32px 36px; }
  .etgj .wy-history > li:last-child { padding-bottom: 0; }
  .etgj .wy-history > li::before { top: 8px; }
}
@media (min-width: 961px) {
  .etgj #etgj-reach .etgj-head > .etgj-statement { padding-left: var(--cell-pad); }
}
  
  
/* ---------- The ET Group difference (rail and features) and the people (design: why/difference.css) ---------- */
  .etgj .etgj-feature p + p { margin-top: -12px; }
.etgj .wy-diff-award { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.etgj .wy-diff-award__item { display: flex; flex-direction: column; gap: 12px; }
.etgj .wy-diff-award__fig { font: 400 var(--fs-subtitle)/1 var(--ff-display); letter-spacing: -0.02em; color: var(--ink); }
.etgj .wy-diff-award__text { font: 400 var(--fs-small)/1.4 var(--ff); color: var(--ink-2); }
.etgj .wy-person__part { margin: 8px 0 0; font: 400 var(--fs-small)/1.4 var(--ff); color: var(--ink); }
.etgj .wy-person__contrib { margin: 6px 0 0; font: 400 var(--fs-small)/1.4 var(--ff); color: var(--ink-2); }
@media (max-width: 520px) {
  .etgj .wy-diff-award { padding-top: 16px; }
}


/* ---------- Credentials and recognition (hairline cells) (design: why/credentials.css) ---------- */
.etgj .wy-cred { display: flex; flex-direction: column; }
.etgj .wy-cred__list { margin: 4px 0 0; padding: 0; list-style: none; }
.etgj .wy-cred__list li { padding: 10px 0; border-top: 1px solid var(--line); font: 400 var(--fs-small)/1.45 var(--ff); color: var(--ink); }
.etgj .wy-cred__list li:last-child { border-bottom: 1px solid var(--line); }
.etgj .wy-cred__intro { margin: 0 0 12px; font: 400 var(--fs-small)/1.45 var(--ff); color: var(--grey); }
.etgj .wy-cred__why { margin: 0; padding-top: 24px; font: 400 var(--fs-small)/1.45 var(--ff); color: var(--grey); }
.etgj .wy-award__year { display: block; margin: 0 0 16px; font: 400 var(--fs-subtitle)/1.1 var(--ff-display); letter-spacing: -0.02em; color: var(--ink); }
.etgj .wy-award p { color: var(--ink-2); }
/* Nov 24: each award name links out (new tab), as the page's text link run inline so a wrapped name ends on the arrow */
.etgj .wy-award__link { display: inline; font: inherit; letter-spacing: inherit; color: inherit; text-underline-offset: 5px; }
.etgj .wy-award__link::after { display: inline-block; margin-left: 8px; vertical-align: -2px; }
@media (min-width: 961px) {
  .etgj .wy-cred .wy-cell__title { min-height: calc(var(--fs-heading) * 1.25 * 2); }
}
@media (min-width: 961px) {
  .etgj .wy-creds { grid-template-rows: repeat(4, auto); row-gap: 0; }
  .etgj .wy-creds > .wy-cred { grid-row: span 4; display: grid; grid-template-rows: subgrid; align-content: start; }
}


/* ---------- Closing: the invitation line between the two-tone headline and the button (design: why/closing.css) ---------- */
.etgj .etgj-closing .etgj-closing__title { margin-bottom: 20px; }
.etgj .wy-closing-invite { max-width: 36em; margin: 0 0 32px; font: 400 var(--fs-body)/1.55 var(--ff); color: var(--ink-2); text-wrap: pretty; }
