/* HERO */

  /* ============================================================
     PREVIEW HARNESS ONLY — this html/body block just centers the
     card for review in a browser. It is NOT part of the injected
     snippet and should not be copied into the CMS block.
     ============================================================ */

  /* ============================================================
     INJECTED SNIPPET STARTS HERE
     Everything below is scoped under #anim-compliance-control-hero.
     Safe to lift directly into the Drupal block — no bare element
     selectors, no :root, no JS.
     ============================================================ */

  #anim-compliance-control-hero {
    --gep-ruby: #D42F5A;
    --gep-dark: #1B1B2F;
    --gep-green: #2ECB71;
    --gep-white: #FFFFFF;
    --gep-light-grey: #F5F6F8;
    --gep-text: #333333;
    --gep-muted: #888888;
    --gep-border: #E5E7EB;

    width: 460px;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  #anim-compliance-control-hero * {
    box-sizing: border-box;
  }

  #anim-compliance-control-hero .ccch-card {
    background: var(--gep-white);
    border: 1px solid var(--gep-border);
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: 0 12px 32px rgba(27, 27, 47, 0.08);
    position: relative;
    overflow: hidden;
  }

  #anim-compliance-control-hero .ccch-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
  }

  #anim-compliance-control-hero .ccch-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gep-green);
    animation: compliance-control-hero-pulseDot 1.8s ease-in-out infinite;
    flex-shrink: 0;
  }

  #anim-compliance-control-hero .ccch-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--gep-muted);
  }

  #anim-compliance-control-hero .ccch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--gep-light-grey);
    opacity: 0;
    transform: translateY(8px);
  }

  #anim-compliance-control-hero .ccch-row + .ccch-row {
    margin-top: 8px;
  }

  #anim-compliance-control-hero .ccch-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gep-white);
    border: 1px solid var(--gep-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gep-dark);
  }

  #anim-compliance-control-hero .ccch-icon svg {
    width: 16px;
    height: 16px;
  }

  #anim-compliance-control-hero .ccch-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  #anim-compliance-control-hero .ccch-row-label {
    font-size: 12px;
    color: var(--gep-muted);
    font-weight: 500;
  }

  #anim-compliance-control-hero .ccch-row-value {
    font-size: 15px;
    color: var(--gep-text);
    font-weight: 700;
  }

  #anim-compliance-control-hero .ccch-contract {
    animation: compliance-control-hero-fadeContract 7s ease-in-out infinite;
  }

  #anim-compliance-control-hero .ccch-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0;
    opacity: 0;
    animation: compliance-control-hero-fadeConnector 7s ease-in-out infinite;
  }

  #anim-compliance-control-hero .ccch-connector-line {
    width: 1px;
    height: 16px;
    background: var(--gep-border);
  }

  #anim-compliance-control-hero .ccch-connector-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gep-white);
    border: 1px solid var(--gep-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gep-muted);
    flex-shrink: 0;
  }

  #anim-compliance-control-hero .ccch-connector-icon svg {
    width: 11px;
    height: 11px;
  }

  #anim-compliance-control-hero .ccch-invoice {
    animation: compliance-control-hero-fadeInvoice 7s ease-in-out infinite;
  }

  #anim-compliance-control-hero .ccch-invoice .ccch-row-value {
    color: var(--gep-ruby);
  }

  #anim-compliance-control-hero .ccch-badge {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gep-ruby), #B92249);
    opacity: 0;
    transform: scale(0.92);
    animation: compliance-control-hero-fadeBadge 7s ease-in-out infinite;
  }

  #anim-compliance-control-hero .ccch-badge-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  #anim-compliance-control-hero .ccch-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gep-white);
  }

  #anim-compliance-control-hero .ccch-badge-icon svg {
    width: 13px;
    height: 13px;
  }

  #anim-compliance-control-hero .ccch-badge-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  #anim-compliance-control-hero .ccch-badge-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
  }

  #anim-compliance-control-hero .ccch-badge-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--gep-white);
  }

  #anim-compliance-control-hero .ccch-badge-confidence {
    font-size: 11px;
    font-weight: 700;
    color: var(--gep-white);
    background: rgba(255, 255, 255, 0.16);
    padding: 5px 9px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  @keyframes compliance-control-hero-pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 203, 113, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(46, 203, 113, 0); }
  }

  @keyframes compliance-control-hero-fadeContract {
    0%, 3% { opacity: 0; transform: translateY(8px); }
    9%, 84% { opacity: 1; transform: translateY(0); }
    94%, 100% { opacity: 0; transform: translateY(-4px); }
  }

  @keyframes compliance-control-hero-fadeConnector {
    0%, 16% { opacity: 0; }
    22%, 84% { opacity: 1; }
    94%, 100% { opacity: 0; }
  }

  @keyframes compliance-control-hero-fadeInvoice {
    0%, 27% { opacity: 0; transform: translateY(8px); }
    33%, 84% { opacity: 1; transform: translateY(0); }
    94%, 100% { opacity: 0; transform: translateY(-4px); }
  }

  @keyframes compliance-control-hero-fadeBadge {
    0%, 43% { opacity: 0; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.03); }
    55%, 84% { opacity: 1; transform: scale(1); }
    94%, 100% { opacity: 0; transform: scale(0.96); }
  }

  /* SECTION 1 */

  /* ============================================================
     PREVIEW HARNESS ONLY — centers the card for review in a
     browser. Not part of the injected snippet below.
     ============================================================ */
  /* ============================================================
     INJECTED SNIPPET STARTS HERE
     Everything below is scoped under #anim-compliance-control-qi.
     Safe to lift directly into the Drupal block — no bare element
     selectors, no :root, no JS.
     ============================================================ */

  #anim-compliance-control-qi {
    --gep-ruby: #D42F5A;
    --gep-dark: #1B1B2F;
    --gep-green: #2ECB71;
    --gep-white: #FFFFFF;
    --gep-light-grey: #F5F6F8;
    --gep-text: #333333;
    --gep-muted: #888888;
    --gep-border: #E5E7EB;

    width: 460px;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  #anim-compliance-control-qi * {
    box-sizing: border-box;
  }

  #anim-compliance-control-qi .ccqi-card {
    background: var(--gep-white);
    border: 1px solid var(--gep-border);
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: 0 12px 32px rgba(27, 27, 47, 0.08);
    position: relative;
    overflow: hidden;
  }

  #anim-compliance-control-qi .ccqi-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }

  #anim-compliance-control-qi .ccqi-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--gep-muted);
  }

  #anim-compliance-control-qi .ccqi-row {
    position: relative;
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 8px;
  }

  #anim-compliance-control-qi .ccqi-row-3 {
    margin-bottom: 0;
  }

  #anim-compliance-control-qi .ccqi-row-highlight {
    position: absolute;
    inset: 0;
    background: rgba(212, 47, 90, 0.06);
    border-left: 3px solid var(--gep-ruby);
    border-radius: 10px;
    opacity: 0;
  }

  #anim-compliance-control-qi .ccqi-row-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 4px;
  }

  #anim-compliance-control-qi .ccqi-row-main p {
    padding: 0;
    margin: 0;
    text-align: left;
    line-height: 0.8 !important;
  }

  #anim-compliance-control-qi .ccqi-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  #anim-compliance-control-qi .ccqi-type {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gep-text);
  }

  #anim-compliance-control-qi .ccqi-value {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gep-text);
    flex-shrink: 0;
  }

  #anim-compliance-control-qi .ccqi-supplier {
    font-size: 12px; text-align: left; line-height: 1;
    color: var(--gep-muted);
  }

  #anim-compliance-control-qi .ccqi-row-detail {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    opacity: 0;
  }

  #anim-compliance-control-qi .ccqi-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gep-muted);
    flex-shrink: 0;
  }

  #anim-compliance-control-qi .ccqi-detail-value {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gep-text);
    text-align: right;
  }

  #anim-compliance-control-qi .ccqi-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gep-border);
  }

  #anim-compliance-control-qi .ccqi-footer p {
    padding: 0;
    margin: 0;
    line-height: 1;
  }

  #anim-compliance-control-qi .ccqi-footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(46, 203, 113, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1F9D5C;
    flex-shrink: 0;
  }

  #anim-compliance-control-qi .ccqi-footer-icon svg {
    width: 11px;
    height: 11px;
  }

  #anim-compliance-control-qi .ccqi-footer-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--gep-muted);
  }

  /* One finding is active at a time. Its row highlights and its own
     clause line fades in directly underneath it — a single moving
     part per step instead of a separate panel to track. */
  #anim-compliance-control-qi .ccqi-highlight-1,
  #anim-compliance-control-qi .ccqi-detail-1 {
    animation: compliance-control-qi-active1 15s ease-in-out infinite;
  }

  #anim-compliance-control-qi .ccqi-highlight-2,
  #anim-compliance-control-qi .ccqi-detail-2 {
    animation: compliance-control-qi-active2 15s ease-in-out infinite;
  }

  #anim-compliance-control-qi .ccqi-highlight-3,
  #anim-compliance-control-qi .ccqi-detail-3 {
    animation: compliance-control-qi-active3 15s ease-in-out infinite;
  }

  @keyframes compliance-control-qi-active1 {
    0%, 2% { opacity: 0; }
    5%, 29% { opacity: 1; }
    32%, 100% { opacity: 0; }
  }

  @keyframes compliance-control-qi-active2 {
    0%, 35% { opacity: 0; }
    38%, 62% { opacity: 1; }
    65%, 100% { opacity: 0; }
  }

  @keyframes compliance-control-qi-active3 {
    0%, 68% { opacity: 0; }
    71%, 95% { opacity: 1; }
    98%, 100% { opacity: 0; }
  }