.widgit-b-corp {
    --brand:#e56220;
    --ink:#222933;
    --muted:#6b7380;
    --card:#ffffff;
    --track:#f6f8fb;
    --alt:#eff3f8;
    --divider:#d8dee9;
    --community:#bf1e2e;
    --environment:#39b54a;
    --governance:#0f71b8;
    --workers:#f8c311;
    --customers:#a6ce42;
}
.widgit-b-corp * {
    box-sizing: border-box;
}
.widgit-b-corp html,
.widgit-b-corp body {
    margin: 0;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #f7f9fc;
}
.widgit-b-corp .container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.widgit-b-corp .card {
    background: var(--card);
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 0 28px #bdbdbd;
    padding: 2rem;
}
.widgit-b-corp .card h3 {
    margin-top: 0;
}
.widgit-b-corp .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.widgit-b-corp .title {
    margin: 0;
    font-size: 24px;
    letter-spacing: .2px;
}
.widgit-b-corp .subtitle {
    margin: 6px 0 0;
    color: var(--muted);
}
.widgit-b-corp .overall {
    display: flex;
    gap: 28px;
    align-items: stretch;
    margin: 20px 0 8px;
}
.widgit-b-corp .overall-left {
    flex: 3;
}
.widgit-b-corp .overall-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.widgit-b-corp .row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 14px 0;
}
.widgit-b-corp .label {
    width: 260px;
    font-size: 14px;
    color: #334155;
}
.widgit-b-corp .barwrap {
    flex: 1;
}
.widgit-b-corp .bar {
    position: relative;
    height: 28px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(to right, var(--alt) 0 25%, var(--track) 25% 50%, var(--alt) 50% 75%, var(--track) 75% 100%);
}
.widgit-b-corp .bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, transparent calc(25% - .5px), var(--divider) 0, var(--divider) calc(25% + .5px), transparent 0),
        linear-gradient(to right, transparent calc(50% - .5px), var(--divider) 0, var(--divider) calc(50% + .5px), transparent 0),
        linear-gradient(to right, transparent calc(75% - .5px), var(--divider) 0, var(--divider) calc(75% + .5px), transparent 0);
    pointer-events: none;
}
.widgit-b-corp .fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    border-radius: 12px;
    position: relative;
    width: 0;
    transition: width 900ms cubic-bezier(.2, .8, .2, 1);
}
.widgit-b-corp .fill.in {
    width: var(--w);
}
.widgit-b-corp .fill.faded {
    opacity: 0.45 !important;
    filter: saturate(60%) !important;
}
.widgit-b-corp .pill {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e6ebf3;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(11, 41, 74, .08);
}

/* Category colours */
.widgit-b-corp .community { background: var(--community) !important; }
.widgit-b-corp .environment { background: var(--environment) !important; }
.widgit-b-corp .governance { background: var(--governance) !important; }
.widgit-b-corp .workers { background: var(--workers) !important; }
.widgit-b-corp .customers { background: var(--customers) !important; }
.widgit-b-corp .brand { background: var(--brand) !important; }

/* Donut chart */
.widgit-b-corp .donut {
    width: 180px;
    height: 180px;
    position: relative;
    display: grid;
    place-items: center;
}
.widgit-b-corp .donut::before {
    --deg: 212.04deg;
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--brand) var(--deg), #e6ebf3 0 360deg);
}
.widgit-b-corp .donut::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: #ffffff;
}
.widgit-b-corp .donut .score {
    position: relative;
    text-align: center;
    z-index: 1;
}
.widgit-b-corp .donut .score .big {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
}
.widgit-b-corp .donut .score .small {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Tabs */
.widgit-b-corp .tabs {
    display: flex;
    gap: 22px;
    margin: 22px 0 6px;
    flex-wrap: wrap;
}
.widgit-b-corp .tab {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand);
    border-bottom: 3px solid transparent;
    cursor: pointer;
}
.widgit-b-corp .tab.active {
    border-color: var(--brand);
}
.widgit-b-corp .panel {
    display: none;
    margin-top: 2px;
}
.widgit-b-corp .panel.active {
    display: block;
}
@media (max-width: 768px) {
    .widgit-b-corp .overall {
        flex-direction: column;
        gap: 16px;
    }
    .widgit-b-corp .overall-right {
        margin-top: 16px;
    }
    .widgit-b-corp .row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 10px 0;
    }
    .widgit-b-corp .label {
        width: auto;
        font-size: 13px;
        margin-bottom: 4px;
    }
    .widgit-b-corp .barwrap {
        width: 100% !important;
        flex: none;
    }
    .widgit-b-corp .bar {
        width: 100% !important;
        max-width: 100%;
        height: 20px;
    }
    .widgit-b-corp .donut {
        width: 140px;
        height: 140px;
    }
    .widgit-b-corp .tabs {
        flex-direction: column;
        gap: 8px;
    }
    .widgit-b-corp .tab {
        width: 100%;
        text-align: left;
    }
    .widgit-b-corp .card {
        padding: 1rem;
    }
}