/* Infographics (ig-*) — reusable panels that replace stock/AI photos.
   Visual language mirrors the hero cards (hero-ticker.svg / hero-calls.svg).
   Markup comes from views/landing/includes/ig/*.php. See ig/README.md. */
.ig {
    --ig-green: #2e8b57;
    --ig-cap: #24704a;
    --ig-ink: #14331f;
    --ig-meta: #52705f;
    --ig-border: #d6e9dd;
    --ig-tile: #f2f8f4;
    --ig-hi: #e6f2ea;
    --ig-hi-border: #9fcfb2;
    --ig-ok: #1c6b43;
    --ig-warn: #b03a34;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ig-border);
    border-radius: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ig-meta);
    text-align: left;
    direction: ltr;
}
.ig *, .ig *::before, .ig *::after { box-sizing: border-box; }
.ig ul, .ig ol { list-style: none; margin: 0; padding: 0; }

.ig-cap {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ig-cap);
    line-height: 1.3;
}
.ig-cap::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ig-green);
}
.ig-title {
    font-family: 'Satoshi-Bold', 'Jost', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ig-ink);
}
.ig-meta { font-size: 12.5px; line-height: 1.45; color: var(--ig-meta); }
.ig-status {
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ig-ok);
}
.ig-status--warn { color: var(--ig-warn); }
.ig .ig-foot {
    margin: 16px 0 0;
    font-size: 11.5px;
    line-height: 1.4;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ig-meta);
}
.ig-tile {
    background: var(--ig-tile);
    border: 1px solid var(--ig-border);
    border-radius: 9px;
    padding: 12px 14px;
}
.ig-tile--hi { background: var(--ig-hi); border-color: var(--ig-hi-border); }

/* chips */
.ig-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ig-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ig-ink);
    background: var(--ig-tile);
    border: 1px solid var(--ig-border);
    border-radius: 999px;
}
.ig-chip--on {
    background: var(--ig-hi);
    border-color: var(--ig-hi-border);
    color: var(--ig-ok);
}
.ig-chip--on::before {
    content: "";
    width: 7px; height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--ig-green);
}
.ig-chip--add { border-style: dashed; color: var(--ig-meta); background: #fff; }

/* settings */
.ig-set { display: grid; gap: 16px; }
.ig-set__row { display: grid; gap: 9px; }
.ig-set__label { font-family: 'Satoshi-Bold', 'Jost', system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--ig-ink); }
.ig-slider { position: relative; height: 24px; }
.ig-slider__track {
    position: absolute; left: 0; right: 0; top: 10px; height: 4px;
    background: #d6e9dd; border-radius: 2px;
}
.ig-slider__fill { position: absolute; left: 0; top: 10px; height: 4px; width: 60%; background: var(--ig-green); border-radius: 2px; }
.ig-slider__knob {
    position: absolute; left: 60%; top: 3px; width: 18px; height: 18px; margin-left: -9px;
    background: #fff; border: 2px solid var(--ig-green); border-radius: 50%;
}

/* flow */
.ig-flow { display: grid; grid-template-columns: repeat(var(--ig-n, 4), minmax(0, 1fr)); gap: 14px; counter-reset: igstep; }
.ig-flow__step { position: relative; display: grid; align-content: start; gap: 6px; padding: 14px; }
.ig-flow__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-bottom: 4px;
    border-radius: 50%; background: #fff; border: 1px solid var(--ig-hi-border);
    font-weight: 700; font-size: 12.5px; color: var(--ig-ok);
}
.ig-flow__step--hi .ig-flow__num { background: var(--ig-green); border-color: var(--ig-green); color: #fff; }
.ig-flow__step:not(:last-child)::after {
    content: ""; position: absolute; top: 26px; left: calc(100% + 1px); width: 12px; height: 2px;
    background: var(--ig-hi-border);
}

/* criteria */
.ig-crit { display: grid; gap: 10px; }
.ig--criteria.ig--cols .ig-crit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ig-crit__item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ig-crit__ico { width: 22px; height: 22px; margin-top: 1px; color: var(--ig-ok); }
.ig-crit__text { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--ig-meta); }

/* record */
.ig-rec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ig-pill { padding: 4px 10px; border-radius: 999px; background: var(--ig-hi); border: 1px solid var(--ig-hi-border); }
.ig-rec__list { display: grid; gap: 8px; }
.ig-rec__row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; gap: 12px; align-items: center; padding: 9px 12px; }
.ig-rec__label { font-size: 12.5px; font-weight: 600; color: var(--ig-meta); }
.ig-rec__value { font-family: 'Satoshi-Bold', 'Jost', system-ui, sans-serif; font-weight: 700; font-size: 14px; color: var(--ig-ink); }
.ig-rec__bar { display: block; height: 8px; width: 70%; border-radius: 4px; background: #cfe3d6; }

/* coverage */
.ig-cov__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.ig-cov__grid .ig-chip { justify-content: center; text-align: center; border-radius: 9px; padding: 9px 8px; }
.ig .ig-cov__note { margin: 14px 0 0; font-family: 'Inter', system-ui, sans-serif; color: var(--ig-meta); font-size: 12.5px; line-height: 1.45; }

/* compare */
.ig-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ig-cmp__col { padding: 16px; }
.ig-cmp__col ul { display: grid; gap: 9px; margin-top: 10px; }
.ig-cmp__col li { position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.45; color: var(--ig-meta); }
.ig-cmp__col li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%;
    background: #b9cfc0;
}
.ig-cmp__col--hi li::before { background: var(--ig-green); }
.ig-cmp__col--hi .ig-title { color: var(--ig-ok); }

/* slot helper: infographic inside an image card */
.phase2-market-image-card > .ig { border: 0; border-radius: 10px; }

@media (max-width: 1100px) {
    .ig-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ig-flow__step::after { display: none; }
}
@media (max-width: 560px) {
    .ig { padding: 16px; }
    .ig-flow { grid-template-columns: 1fr; }
    .ig--criteria.ig--cols .ig-crit,
    .ig-cmp { grid-template-columns: 1fr; }
    .ig-rec__row { grid-template-columns: 1fr; gap: 6px; }
}

/* Slots whose wrapper already draws a bordered card: drop the panel's own border
   so the infographic doesn't get a double frame. */
.ld-delivery-media > .ig,
.live-how-media > .ig { border: 0; box-shadow: none; }

/* Host pages style bare span/li (e.g. market cards, resources); keep chips at
   their own size and stop the status dot from being squeezed. */
.ig .ig-chips .ig-chip,
.ig .ig-cov__grid .ig-chip { font-size: 12.5px; line-height: 1.25; font-family: 'Inter', system-ui, sans-serif; }
.ig .ig-chip--on::before { flex-shrink: 0; }

/* /calls/ carousel: the image wrapper is a fixed 240px crop on phones (sized
   for the old photos); an infographic needs its full height. */
.karuk-card .x-img-wrap:has(> .ig) { height: auto; overflow: visible; }
