.yalla-bds,
.yalla-bds * {
    box-sizing: border-box;
}

.yalla-bds {
    --bds-red: #ef5b60;
    --bds-red-dark: #cc3941;
    --bds-ink: #111111;
    --bds-muted: #626a73;
    --bds-line: #dedede;
    --bds-soft: #f5f5f3;
    --bds-white: #ffffff;
    color: var(--bds-ink);
    font-family: inherit;
}

.yalla-bds__header {
    max-width: 920px;
    margin: 0 0 32px;
}

.yalla-bds__title {
    margin: 0 0 12px;
    color: var(--bds-ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.yalla-bds__intro {
    margin: 0;
    color: var(--bds-muted);
    font-size: 18px;
    line-height: 1.6;
}

.yalla-bds__toolbar {
    margin-bottom: 24px;
}

.yalla-bds__search-label,
.yalla-bds__filter-label {
    display: block;
    margin: 0 0 8px;
    color: var(--bds-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.yalla-bds__search-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 62px;
    border: 2px solid var(--bds-ink);
    border-radius: 0;
    background: var(--bds-white);
}

.yalla-bds__search-icon {
    position: relative;
    display: block;
}

.yalla-bds__search-icon::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 16px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bds-ink);
    border-radius: 50%;
}

.yalla-bds__search-icon::after {
    content: "";
    position: absolute;
    top: 35px;
    left: 30px;
    width: 9px;
    height: 2px;
    background: var(--bds-ink);
    transform: rotate(45deg);
    transform-origin: left center;
}

.yalla-bds__search {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 12px;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent;
    box-shadow: none !important;
    color: var(--bds-ink);
    font: inherit;
    font-size: 17px;
}

.yalla-bds__search:focus {
    outline: 0;
}

.yalla-bds__search-wrap:focus-within {
    border-color: var(--bds-red);
    box-shadow: 0 0 0 3px rgba(239, 91, 96, .15);
}

.yalla-bds__clear,
.yalla-bds__filter {
    appearance: none;
    border-radius: 0 !important;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
}

.yalla-bds__clear {
    margin: 7px;
    padding: 0 20px;
    border: 0;
    background: var(--bds-soft);
    color: var(--bds-ink);
    font-size: 13px;
    text-transform: uppercase;
}

.yalla-bds__clear:hover,
.yalla-bds__clear:focus-visible {
    background: var(--bds-ink);
    color: var(--bds-white);
}

.yalla-bds__filter-block {
    margin: 0 0 18px;
}

.yalla-bds__filter-block--impact {
    margin-bottom: 30px;
}

.yalla-bds__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yalla-bds__filter {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--bds-line);
    background: var(--bds-white);
    color: var(--bds-ink);
    font-size: 14px;
}

.yalla-bds__filter:hover,
.yalla-bds__filter:focus-visible {
    border-color: var(--bds-ink);
}

.yalla-bds__filter.is-active {
    border-color: var(--bds-ink);
    background: var(--bds-ink);
    color: var(--bds-white);
}

.yalla-bds__notices {
    display: grid;
    gap: 14px;
    margin: 32px 0 0;
}

.yalla-bds__notice {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px 28px;
    border: 1px solid #b9d9ef;
    border-left: 6px solid #3387bd;
    border-radius: 0;
    background: #edf7fd;
}

.yalla-bds__notice--warning {
    border-color: #efcf70;
    border-left-color: #ed9b08;
    background: #fff4c9;
}

.yalla-bds__notice--danger {
    border-color: #ef9ca0;
    border-left-color: var(--bds-red-dark);
    background: #fff0f1;
}

.yalla-bds__notice-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid currentColor;
    color: #3387bd;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.yalla-bds__notice--warning .yalla-bds__notice-icon {
    color: #ed9b08;
}

.yalla-bds__notice--danger .yalla-bds__notice-icon {
    color: var(--bds-red-dark);
}

.yalla-bds__notice h3 {
    margin: 0 0 7px;
    color: var(--bds-ink);
    font-size: 20px;
    line-height: 1.25;
}

.yalla-bds__notice p {
    margin: 0;
    line-height: 1.55;
}

.yalla-bds__result-tools {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px;
}

.yalla-bds__summary {
    margin: 0;
    color: var(--bds-muted);
    font-size: 15px;
}

.yalla-bds__view-switch {
    display: flex;
    gap: 7px;
    align-items: center;
}

.yalla-bds__view-label {
    margin-right: 3px;
    color: var(--bds-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.yalla-bds__view {
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid var(--bds-line);
    border-radius: 0 !important;
    background: var(--bds-white);
    color: var(--bds-ink);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
}

.yalla-bds__view:hover,
.yalla-bds__view:focus-visible,
.yalla-bds__view.is-active {
    border-color: var(--bds-ink);
}

.yalla-bds__view.is-active {
    background: var(--bds-ink);
    color: var(--bds-white);
}

.yalla-bds__list {
    display: grid;
    gap: 18px;
}

.yalla-bds__company {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 100%;
    padding: 28px;
    border: 1px solid var(--bds-line);
    border-left: 5px solid var(--bds-red);
    border-radius: 0;
    background: var(--bds-white);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .055);
}

.yalla-bds__company[hidden] {
    display: none !important;
}

.yalla-bds__logo {
    position: sticky;
    top: 20px;
    width: 148px;
    height: 148px;
    border: 1px solid #e6e6e6;
    background: var(--bds-white);
    overflow: hidden;
}

.yalla-bds__logo img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.yalla-bds__logo-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: var(--bds-soft);
    color: var(--bds-red-dark);
    font-size: 34px;
    font-weight: 900;
}

.yalla-bds__company-content {
    min-width: 0;
}

.yalla-bds__company-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 14px;
}

.yalla-bds__category {
    margin-bottom: 5px;
    color: var(--bds-red-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.yalla-bds__company-name {
    margin: 0;
    color: var(--bds-ink);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.12;
}

.yalla-bds__impact {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid currentColor;
    border-radius: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.yalla-bds__impact--high {
    color: #b2212b;
    background: #fff0f1;
}

.yalla-bds__impact--medium {
    color: #966300;
    background: #fff7df;
}

.yalla-bds__impact--low {
    color: #356f50;
    background: #edf8f1;
}

.yalla-bds__description {
    color: #34393f;
    font-size: 16px;
    line-height: 1.65;
}

.yalla-bds__description p {
    margin: 0 0 12px;
}

.yalla-bds__facts {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    border-top: 1px solid var(--bds-line);
}

.yalla-bds__facts > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bds-line);
}

.yalla-bds__facts dt {
    color: var(--bds-ink);
    font-weight: 800;
}

.yalla-bds__facts dd {
    margin: 0;
    color: var(--bds-muted);
}

.yalla-bds__details {
    margin-top: 12px;
    border: 1px solid var(--bds-line);
    border-radius: 0;
    background: #fafafa;
}

.yalla-bds__details summary {
    padding: 12px 15px;
    cursor: pointer;
    color: var(--bds-ink);
    font-weight: 800;
}

.yalla-bds__details[open] summary {
    border-bottom: 1px solid var(--bds-line);
}

.yalla-bds__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 14px;
}

.yalla-bds__chips span {
    padding: 6px 9px;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    background: var(--bds-white);
    color: #444;
    font-size: 13px;
}

.yalla-bds__sources {
    margin: 0;
    padding: 14px 14px 14px 44px;
}

.yalla-bds__sources li + li {
    margin-top: 5px;
}

.yalla-bds__sources a {
    color: var(--bds-red-dark);
    font-weight: 700;
}

.yalla-bds__card-notice {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 5px solid #3387bd;
    background: #edf7fd;
}

.yalla-bds__card-notice--warning {
    border-left-color: #ed9b08;
    background: #fff4c9;
}

.yalla-bds__card-notice--danger {
    border-left-color: var(--bds-red-dark);
    background: #fff0f1;
}

.yalla-bds__card-notice p {
    margin: 5px 0 0;
}

.yalla-bds__empty {
    padding: 36px 24px;
    border: 1px solid var(--bds-line);
    background: var(--bds-soft);
    color: var(--bds-muted);
    text-align: center;
    font-size: 17px;
}

@media (min-width: 768px) {
    .yalla-bds--grid .yalla-bds__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .yalla-bds--grid .yalla-bds__company {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        border-left: 1px solid var(--bds-line);
        box-shadow: 0 5px 14px rgba(0, 0, 0, .045);
    }

    .yalla-bds--grid .yalla-bds__logo {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .yalla-bds--grid .yalla-bds__company-top {
        display: block;
        margin: 0;
        text-align: center;
    }

    .yalla-bds--grid .yalla-bds__company-name {
        font-size: 18px;
        line-height: 1.25;
    }

    .yalla-bds--grid .yalla-bds__category,
    .yalla-bds--grid .yalla-bds__impact,
    .yalla-bds--grid .yalla-bds__description,
    .yalla-bds--grid .yalla-bds__facts,
    .yalla-bds--grid .yalla-bds__details,
    .yalla-bds--grid .yalla-bds__card-notice {
        display: none;
    }
}

@media (max-width: 767px) {
    .yalla-bds__intro {
        font-size: 16px;
    }

    .yalla-bds__search-wrap {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .yalla-bds__clear {
        grid-column: 1 / -1;
        min-height: 42px;
        margin: 0;
        border-top: 1px solid var(--bds-line);
    }

    .yalla-bds__filter {
        flex: 1 1 calc(50% - 8px);
        padding-right: 10px;
        padding-left: 10px;
    }

    .yalla-bds__result-tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .yalla-bds__view-switch {
        display: none;
    }

    .yalla-bds__notice {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 13px;
        padding: 18px 16px;
    }

    .yalla-bds__notice-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .yalla-bds__notice h3 {
        font-size: 17px;
    }

    .yalla-bds__company {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 16px;
        padding: 18px 14px;
        border-left-width: 4px;
    }

    .yalla-bds__logo {
        position: static;
        width: 92px;
        height: 92px;
    }

    .yalla-bds__company-top {
        display: block;
    }

    .yalla-bds__company-name {
        font-size: 23px;
    }

    .yalla-bds__impact {
        display: inline-block;
        margin-top: 10px;
    }

    .yalla-bds__description,
    .yalla-bds__facts,
    .yalla-bds__details,
    .yalla-bds__card-notice {
        grid-column: 1 / -1;
    }

    .yalla-bds__company-content {
        display: contents;
    }

    .yalla-bds__company-top {
        grid-column: 2;
        align-self: center;
        margin: 0;
    }

    .yalla-bds__description {
        margin-top: 2px;
    }

    .yalla-bds__facts > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}
