/*=====================================================*/
/*  ENTERPRISE GOVERNANCE — page styles                */
/*  Depends on assets/css/ai/common.css                */
/*=====================================================*/

/*-----------------------------------*/
/* HERO — THE GOVERNED ACTION        */
/* One purchase order clearing every */
/* control in turn. The gates stamp  */
/* in sequence, so governance reads  */
/* as something that happens rather  */
/* than something claimed.           */
/*-----------------------------------*/
.egv-gates {
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 4px 0 0 var(--ai-primary);
  overflow: hidden;
}

.egv-gates__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--ai-ink);
  font-family: var(--ai-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Card-bar labels carry their own type rather than inheriting it. The live
   theme styles spans directly, and a direct declaration always beats an
   inherited one however specific the ancestor rule is — same reason
   .ai-console__bar sets its type on the span. */
.egv-gates__bar span,
.egv-ledger__bar span {
  font-family: var(--ai-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
}

.egv-ledger__head span {
  font-family: var(--ai-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4) !important;
}

.egv-gates__bar i,
.egv-gates__bar svg {
  width: 15px;
  height: 15px;
  color: var(--ai-primary);
  stroke-width: 2.4;
  flex-shrink: 0;
}

.egv-gates__bar em {
  margin-left: auto;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--ai-mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ai-primary);
  white-space: nowrap;
}

.egv-gates__origin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--ai-line);
  font-family: var(--ai-mono);
  font-size: 11.5px;
  line-height: 1.5 !important;
  letter-spacing: 0.04em;
  color: var(--ai-muted);
}

.egv-gates__origin i,
.egv-gates__origin svg {
  width: 15px;
  height: 15px;
  color: var(--ai-primary-deep);
  stroke-width: 2.2;
  flex-shrink: 0;
}

.egv-gate {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--ai-line);
  transition: background 0.4s ease;
}

.egv-gate:first-child {
  border-top: 0;
}

.egv-gate.is-checking {
  background: rgba(var(--ai-primary-rgb), 0.06);
}

/* Empty ring until the check clears, then a solid green stamp */
.egv-gate__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #FFF;
  border: 2px solid var(--ai-line);
  border-radius: 50%;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.egv-gate__mark i,
.egv-gate__mark svg {
  width: 14px;
  height: 14px;
  color: transparent;
  stroke-width: 3.4;
  transition: color 0.4s ease;
}

.egv-gate.is-checking .egv-gate__mark {
  border-color: var(--ai-primary);
}

.egv-gate.is-cleared .egv-gate__mark {
  background: var(--ai-green);
  border-color: var(--ai-green);
  transform: scale(1.1);
}

.egv-gate.is-cleared .egv-gate__mark i,
.egv-gate.is-cleared .egv-gate__mark svg {
  color: #FFF;
}

.egv-gate__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.egv-gate__text strong {
  font-family: var(--ai-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ai-ink);
}

.egv-gate__text span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ai-muted);
}

.egv-gates__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--ai-line);
  background: var(--ai-cream);
  font-family: var(--ai-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ai-muted);
  opacity: 0.45;
  transition: opacity 0.5s ease, background 0.5s ease, color 0.5s ease;
}

.egv-gates__foot.is-on {
  opacity: 1;
  background: rgba(var(--ai-green-rgb), 0.08);
  color: var(--ai-ink-soft);
}

.egv-gates__foot i,
.egv-gates__foot svg {
  width: 14px;
  height: 14px;
  color: var(--ai-muted);
  stroke-width: 2.6;
  flex-shrink: 0;
  transition: color 0.5s ease;
}

.egv-gates__foot.is-on i,
.egv-gates__foot.is-on svg {
  color: var(--ai-green);
}

/*----------------------------*/
/* LEARN BAND SPACING         */
/*----------------------------*/
.egv-learn-section {
  padding-bottom: 0;
}

/*----------------------------*/
/* GOVERNANCE STACK           */
/* Shared .ai-stack; only the */
/* width is local — five      */
/* plates read better a       */
/* little narrower.           */
/*----------------------------*/
.egv-stack {
  max-width: 520px;
}

/*----------------------------*/
/* WHAT ADMINS DETERMINE      */
/*----------------------------*/
.ai-page .egv-determines {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 56px !important;
}

.egv-determines li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 24px;
  background: var(--ai-cream);
  border: 1px solid var(--ai-line);
  border-radius: 13px;
  font-family: var(--ai-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ai-ink);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.egv-determines li:hover {
  transform: translateX(5px);
  background: #FFF;
  border-color: rgba(var(--ai-primary-rgb), 0.45);
}

.egv-determines li i,
.egv-determines li svg {
  width: 20px;
  height: 20px;
  color: var(--ai-primary);
  stroke-width: 2.2;
  flex-shrink: 0;
}

/*----------------------------*/
/* FOUR GOVERNANCE CONTROLS   */
/*----------------------------*/
.egv-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.egv-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.egv-control:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--ai-primary-rgb), 0.5);
  box-shadow: 0 4px 0 0 rgba(var(--ai-primary-rgb), 0.35), 0 20px 42px rgba(20, 20, 20, 0.08);
}

.egv-control__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--ai-cream);
  border: 1px solid var(--ai-line);
  border-radius: 15px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.egv-control:hover .egv-control__icon {
  background: rgba(var(--ai-primary-rgb), 0.1);
  border-color: rgba(var(--ai-primary-rgb), 0.4);
}

.egv-control__icon i,
.egv-control__icon svg {
  width: 26px;
  height: 26px;
  color: var(--ai-primary-deep);
  stroke-width: 2;
}

.egv-control h3 {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ai-ink);
}

.egv-control p {
  margin: 0;
  font-family: var(--ai-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ai-muted);
}

/*----------------------------*/
/* PROTECT INFORMATION        */
/*----------------------------*/
.egv-respects {
  max-width: 900px;
  margin-bottom: 56px !important;
}

.egv-compare {
  background: #FFF;
}

.egv-quoteband {
  margin-top: 64px;
}

/*-----------------------------------*/
/* HUMAN OVERSIGHT STEPPER           */
/* Horizontal, because the interest  */
/* is the fork in the middle: three  */
/* outcomes, all of them a person's  */
/* to choose.                        */
/*-----------------------------------*/
.ai-page .egv-oversight {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0 auto 56px !important;
  padding: 0;
  list-style: none;
}

.egv-oversight__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 26px 18px;
  background: #FFF;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.egv-oversight__step:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ai-primary-rgb), 0.45);
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.07);
}

.egv-oversight__step strong {
  font-family: var(--ai-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ai-ink);
}

/* Chevron bridging one step to the next */
.egv-oversight__step+.egv-oversight__step::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 2px solid var(--ai-primary);
  border-right: 2px solid var(--ai-primary);
  transform: rotate(45deg);
}

.egv-oversight__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--ai-cream);
  border: 1px solid var(--ai-line);
  border-radius: 14px;
}

.egv-oversight__icon i,
.egv-oversight__icon svg {
  width: 24px;
  height: 24px;
  color: var(--ai-primary-deep);
  stroke-width: 2;
}

/* The decision step: the three outcomes, stacked where the icon would be */
.egv-oversight__step--fork {
  background: var(--ai-ink);
  border-color: var(--ai-ink);
  box-shadow: 0 4px 0 0 var(--ai-primary);
}

.egv-oversight__step--fork:hover {
  border-color: var(--ai-ink);
  box-shadow: 0 4px 0 0 var(--ai-primary), 0 16px 34px rgba(20, 20, 20, 0.18);
}

.egv-oversight__step--fork strong {
  color: #FFF;
}

.egv-oversight__forks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.egv-oversight__forks em {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--ai-line-dark);
  border-radius: 9px;
  font-family: var(--ai-mono);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFF;
}

.egv-oversight__forks em i,
.egv-oversight__forks em svg {
  width: 13px;
  height: 13px;
  color: var(--ai-primary);
  stroke-width: 2.8;
  flex-shrink: 0;
}

.egv-oversight__step--end {
  border-color: rgba(var(--ai-primary-rgb), 0.5);
  box-shadow: 0 4px 0 0 rgba(var(--ai-primary-rgb), 0.3);
}

.egv-oversight__step--end .egv-oversight__icon {
  background: rgba(var(--ai-primary-rgb), 0.1);
  border-color: rgba(var(--ai-primary-rgb), 0.4);
}

/*----------------------------*/
/* WHAT WORKERS PREPARE       */
/*----------------------------*/
.egv-prepares {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 36px;
  background: var(--ai-cream);
  border: 1px solid var(--ai-line);
  border-radius: 18px;
}

.egv-prepares h3 {
  margin: 0 0 20px;
  font-family: var(--ai-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ai-ink);
}

.egv-prepares ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
}

.egv-prepares li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ai-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ai-ink-soft);
}

.egv-prepares li i,
.egv-prepares li svg {
  width: 18px;
  height: 18px;
  color: var(--ai-primary-deep);
  stroke-width: 2.2;
  flex-shrink: 0;
}

/*-----------------------------------*/
/* AUDIT LEDGER                      */
/* The page's centrepiece: an actual */
/* record, including the entries     */
/* where a person said no. A         */
/* highlight reel would not be an    */
/* audit trail.                      */
/*-----------------------------------*/
.egv-ledger {
  max-width: 1000px;
  margin: 0 auto 60px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ai-line-dark);
  border-radius: 18px;
  box-shadow: 0 4px 0 0 rgba(var(--ai-primary-rgb), 0.4);
  overflow: hidden;
}

.egv-ledger__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--ai-line-dark);
  font-family: var(--ai-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
}

.egv-ledger__bar i,
.egv-ledger__bar svg {
  width: 16px;
  height: 16px;
  color: var(--ai-primary);
  stroke-width: 2.4;
  flex-shrink: 0;
}

.egv-ledger__bar em {
  margin-left: auto;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--ai-mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ai-primary) !important;
}

/* The table keeps its columns and scrolls inside itself rather than
   squeezing the record into an unreadable shape */
.egv-ledger__scroll {
  overflow-x: auto;
}

.egv-ledger__grid {
  min-width: 720px;
}

.egv-ledger__head,
.egv-ledger__row {
  display: grid;
  grid-template-columns: 74px 148px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 18px;
  padding: 13px 24px;
}

.egv-ledger__head {
  border-bottom: 1px solid var(--ai-line-dark);
  font-family: var(--ai-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4) !important;
}

.egv-ledger__row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.45s ease, translate 0.45s ease, background 0.25s ease;
}

.egv-ledger__row:first-of-type {
  border-top: 0;
}

.egv-ledger__row.is-in {
  opacity: 1;
  translate: 0 0;
}

.egv-ledger__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.egv-ledger__time {
  font-family: var(--ai-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5) !important;
}

.egv-ledger__who {
  font-family: var(--ai-heading);
  font-size: 13px;
  font-weight: 700;
  color: #FFF !important;
}

.egv-ledger__what {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72) !important;
}

.egv-ledger__call {
  justify-self: start;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--ai-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.egv-ledger__call--ok {
  background: rgba(var(--ai-green-rgb), 0.14);
  color: #6EE7A8 !important;
}

.egv-ledger__call--edit {
  background: rgba(var(--ai-primary-rgb), 0.16);
  color: var(--ai-primary) !important;
}

.egv-ledger__call--no {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6) !important;
}

.egv-ledger__call--auto {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5) !important;
}

.egv-ledger__call--wait {
  background: rgba(185, 119, 0, 0.2);
  color: #E2A63C !important;
}

.egv-ledger__foot {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 24px;
  border-top: 1px solid var(--ai-line-dark);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--ai-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.45) !important;
}

.egv-ledger__foot i,
.egv-ledger__foot svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--ai-primary);
  stroke-width: 2.4;
  flex-shrink: 0;
}

/*----------------------------*/
/* VISIBILITY LIST            */
/*----------------------------*/
.egv-visibility {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.egv-visibility h3 {
  margin: 0 0 24px;
  font-family: var(--ai-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFF;
}

.ai-page .egv-visibility ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 !important;
}

.egv-visibility li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ai-line-dark);
  border-radius: 999px;
  font-family: var(--ai-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFF;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.egv-visibility li:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(var(--ai-primary-rgb), 0.5);
}

.egv-visibility li i,
.egv-visibility li svg {
  width: 17px;
  height: 17px;
  color: var(--ai-primary);
  stroke-width: 2.2;
  flex-shrink: 0;
}

/*----------------------------*/
/* WHY GOVERNANCE MATTERS     */
/*----------------------------*/
.egv-matters {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 840px;
  margin: 0 auto;
  gap: 18px;
  text-align: center;
}

.egv-matters h2 {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ai-ink);
}

.egv-matters p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7 !important;
  color: var(--ai-muted);
}

.egv-matters__pull {
  margin-top: 8px !important;
  padding: 24px 32px;
  background: var(--ai-cream);
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  box-shadow: 0 4px 0 0 rgba(var(--ai-primary-rgb), 0.3);
  font-family: var(--ai-heading);
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  color: var(--ai-ink) !important;
}

.egv-advisor {
  margin-top: 60px;
}

/*----------------------------*/
/* DEFINITION                 */
/*----------------------------*/
.egv-definition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Both titles reserve two lines so the copy under them starts level */
.egv-definition__title {
  margin: 0;
  font-family: var(--ai-heading);
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-height: 2.3em;
}

.egv-definition p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7 !important;
}

.egv-definition__list {
  width: 100%;
  margin-top: 6px;
}

.egv-definition__list li {
  font-size: 14.5px;
}

/*----------------------------*/
/* RESPONSIVE                 */
/*----------------------------*/
@media (max-width: 1023px) {
  .egv-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Five across is too tight; two rows keep the fork legible */
  .ai-page .egv-oversight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .egv-oversight__step+.egv-oversight__step::before {
    display: none;
  }

  .egv-prepares ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .egv-definition {
    grid-template-columns: 1fr;
  }

  .egv-definition__title {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .egv-controls {
    grid-template-columns: 1fr;
  }

  .ai-page .egv-oversight {
    grid-template-columns: 1fr;
  }

  .egv-prepares {
    padding: 26px 22px;
  }

  .egv-prepares ul {
    grid-template-columns: 1fr;
  }

  .ai-page .egv-determines li {
    padding: 16px 18px;
    font-size: 15px;
  }

  .egv-quoteband {
    margin-top: 44px;
  }

  .egv-matters__pull {
    padding: 20px 22px;
  }

  .egv-ledger__head,
  .egv-ledger__row {
    padding: 12px 18px;
  }
}
